<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Priithon.plt.wxplt</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Priithon-module.html">Package&nbsp;Priithon</a> ::
        <a href="Priithon.plt-module.html">Package&nbsp;plt</a> ::
        Module&nbsp;wxplt
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Priithon.plt.wxplt-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Priithon.plt.wxplt-module.html">Module Priithon.plt.wxplt</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">   1</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L2"></a><tt class="py-lineno">   2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module Priithon.string=Priithon.string-module.html"><a title="Priithon.string" class="py-name" href="#" onclick="return doclink('link-0', 'string', 'link-0');">string</a></tt> </tt>
<a name="L3"></a><tt class="py-lineno">   3</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">numpy</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L4"></a><tt class="py-lineno">   4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<a name="L5"></a><tt class="py-lineno">   5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">   6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module Priithon.plt.plot_utility=Priithon.plt.plot_utility-module.html"><a title="Priithon.plt.plot_utility" class="py-name" href="#" onclick="return doclink('link-1', 'plot_utility', 'link-1');">plot_utility</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L7"></a><tt class="py-lineno">   7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Module Priithon.plt.plot_objects=Priithon.plt.plot_objects-module.html"><a title="Priithon.plt.plot_objects" class="py-name" href="#" onclick="return doclink('link-2', 'plot_objects', 'link-2');">plot_objects</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L8"></a><tt class="py-lineno">   8</tt>  <tt class="py-line"> </tt>
<a name="loop"></a><div id="loop-def"><a name="L9"></a><tt class="py-lineno">   9</tt> <a class="py-toggle" href="#" id="loop-toggle" onclick="return toggle('loop');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt-module.html#loop">loop</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="loop-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="loop-expanded"><a name="L10"></a><tt class="py-lineno">  10</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt class="py-name">bub</tt> </tt>
<a name="L11"></a><tt class="py-lineno">  11</tt>  <tt class="py-line">    <tt class="py-name">bub</tt><tt class="py-op">.</tt><tt class="py-name">SetSize</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">400</tt><tt class="py-op">,</tt><tt class="py-number">400</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno">  12</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-3" class="py-name" targets="Variable Priithon.viewer.i=Priithon.viewer-module.html#i,Variable Priithon.viewer2.i=Priithon.viewer2-module.html#i,Variable Priithon.viewerCommon.i=Priithon.viewerCommon-module.html#i"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-3', 'i', 'link-3');">i</a></tt> <tt class="py-keyword">in</tt> <tt id="link-4" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.range()=Priithon.plt.plot_objects.axis_object-class.html#range"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-4', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-number">20</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L13"></a><tt class="py-lineno">  13</tt>  <tt class="py-line">        <tt class="py-comment">#if bub.GetSizeTuple()[0] ==400: bub.SetSize((200,200))</tt> </tt>
<a name="L14"></a><tt class="py-lineno">  14</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#else: bub.SetSize((400,400))</tt> </tt>
<a name="L15"></a><tt class="py-lineno">  15</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#bub.client.layout_all()</tt> </tt>
<a name="L16"></a><tt class="py-lineno">  16</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">bub</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.draw_graph_area()=Priithon.plt.wxplt.plot_canvas-class.html#draw_graph_area"><a title="Priithon.plt.wxplt.plot_canvas.draw_graph_area" class="py-name" href="#" onclick="return doclink('link-5', 'draw_graph_area', 'link-5');">draw_graph_area</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L17"></a><tt class="py-lineno">  17</tt>  <tt class="py-line"> </tt>
<a name="L18"></a><tt class="py-lineno">  18</tt>  <tt class="py-line"><tt class="py-comment"># Issues:</tt> </tt>
<a name="L19"></a><tt class="py-lineno">  19</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Fix textobject.size() for non-90 degree rotations</tt> </tt>
<a name="L20"></a><tt class="py-lineno">  20</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Auto attributes haven't been fully thought through</tt> </tt>
<a name="L21"></a><tt class="py-lineno">  21</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Axis titles probably should be axis properties</tt> </tt>
<a name="L22"></a><tt class="py-lineno">  22</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     This might save some current layout problems.</tt> </tt>
<a name="L23"></a><tt class="py-lineno">  23</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Little attention has been paid to round off errors.</tt> </tt>
<a name="L24"></a><tt class="py-lineno">  24</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     Occassionly you'll see the consequences in a miss</tt> </tt>
<a name="L25"></a><tt class="py-lineno">  25</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     placed grid line or slightly off markers, but overall</tt> </tt>
<a name="L26"></a><tt class="py-lineno">  26</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     it's not so bad.</tt> </tt>
<a name="L27"></a><tt class="py-lineno">  27</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Could use a more sophisticated property setting scheme,</tt> </tt>
<a name="L28"></a><tt class="py-lineno">  28</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     perhaps like graphite????  Anyway you can do bad things</tt> </tt>
<a name="L29"></a><tt class="py-lineno">  29</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     such as assign a string instead of a text_object to</tt> </tt>
<a name="L30"></a><tt class="py-lineno">  30</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     titles, etc.  This is bad.  Optional typing in future</tt> </tt>
<a name="L31"></a><tt class="py-lineno">  31</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     Python would remove the need for fancy property type</tt> </tt>
<a name="L32"></a><tt class="py-lineno">  32</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     checking system (I think).  Hope it comes to pass...</tt> </tt>
<a name="L33"></a><tt class="py-lineno">  33</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- This should be split up into several modules.  Probably</tt> </tt>
<a name="L34"></a><tt class="py-lineno">  34</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     a package.</tt> </tt>
<a name="L35"></a><tt class="py-lineno">  35</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Printing on windows does not print out line styles.  </tt> </tt>
<a name="L36"></a><tt class="py-lineno">  36</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     Everything is printed as solid lines. argh!</tt> </tt>
<a name="L37"></a><tt class="py-lineno">  37</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     Update: This seems like an issue with calling dc.SetUserScale</tt> </tt>
<a name="L38"></a><tt class="py-lineno">  38</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     If this isn't called, the problem is fixed - but the graph is </tt> </tt>
<a name="L39"></a><tt class="py-lineno">  39</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     tiny!!!  Should I work out the appropriate scaling in draw()</tt> </tt>
<a name="L40"></a><tt class="py-lineno">  40</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     or should the SetUserScale() method maintain line types?</tt> </tt>
<a name="L41"></a><tt class="py-lineno">  41</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Print Preview scaling is not correct.  Not sure why not,</tt> </tt>
<a name="L42"></a><tt class="py-lineno">  42</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     but it looks lit the dc size is different the printer dc size.</tt> </tt>
<a name="L43"></a><tt class="py-lineno">  43</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     How to fix?</tt> </tt>
<a name="L44"></a><tt class="py-lineno">  44</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Rotated text does not print with correct font type. Is this</tt> </tt>
<a name="L45"></a><tt class="py-lineno">  45</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     a wxPython(windows) problem or mine?</tt> </tt>
<a name="L46"></a><tt class="py-lineno">  46</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Plot windows do not become top window when using gui_thread.</tt> </tt>
<a name="L47"></a><tt class="py-lineno">  47</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L48"></a><tt class="py-lineno">  48</tt>  <tt class="py-line"><tt class="py-comment"># To Add:</tt> </tt>
<a name="L49"></a><tt class="py-lineno">  49</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- Legend</tt> </tt>
<a name="L50"></a><tt class="py-lineno">  50</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  -- MouseDown support for changing fonts</tt> </tt>
<a name="L51"></a><tt class="py-lineno">  51</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L52"></a><tt class="py-lineno">  52</tt>  <tt class="py-line"> </tt>
<a name="L53"></a><tt class="py-lineno">  53</tt>  <tt class="py-line"><tt class="py-comment">#make this a box_object?</tt> </tt>
<a name="L54"></a><tt class="py-lineno">  54</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L55"></a><tt class="py-lineno">  55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno">  56</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable Priithon.plt.wxplt.aspect_ratios=Priithon.plt.wxplt-module.html#aspect_ratios"><a title="Priithon.plt.wxplt.aspect_ratios" class="py-name" href="#" onclick="return doclink('link-6', 'aspect_ratios', 'link-6');">aspect_ratios</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'normal'</tt><tt class="py-op">,</tt> <tt class="py-string">'equal'</tt><tt class="py-op">]</tt> </tt>
<a name="L57"></a><tt class="py-lineno">  57</tt>  <tt class="py-line"> </tt>
<a name="L58"></a><tt class="py-lineno">  58</tt>  <tt class="py-line"><tt class="py-comment">#seb </tt> </tt>
<a name="plot_canvas"></a><div id="plot_canvas-def"><a name="L59"></a><tt class="py-lineno">  59</tt> <a class="py-toggle" href="#" id="plot_canvas-toggle" onclick="return toggle('plot_canvas');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html">plot_canvas</a><tt class="py-op">(</tt><tt class="py-base-class">wx</tt><tt class="py-op">.</tt><tt class="py-base-class">Window</tt><tt class="py-op">,</tt><tt class="py-base-class">property_object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="plot_canvas-expanded"><a name="L60"></a><tt class="py-lineno">  60</tt>  <tt class="py-line">    <tt id="link-7" class="py-name" targets="Variable Priithon.plt.plot_objects.axis_object._attributes=Priithon.plt.plot_objects.axis_object-class.html#_attributes,Variable Priithon.plt.plot_objects.border_object._attributes=Priithon.plt.plot_objects.border_object-class.html#_attributes,Variable Priithon.plt.plot_objects.image_object._attributes=Priithon.plt.plot_objects.image_object-class.html#_attributes,Variable Priithon.plt.plot_objects.legend_object._attributes=Priithon.plt.plot_objects.legend_object-class.html#_attributes,Variable Priithon.plt.plot_objects.line_object._attributes=Priithon.plt.plot_objects.line_object-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_line._attributes=Priithon.plt.plot_objects.poly_line-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_marker._attributes=Priithon.plt.plot_objects.poly_marker-class.html#_attributes,Variable Priithon.plt.plot_objects.text_object._attributes=Priithon.plt.plot_objects.text_object-class.html#_attributes,Variable Priithon.plt.wxplt.plot_canvas._attributes=Priithon.plt.wxplt.plot_canvas-class.html#_attributes,Variable Priithon.wxPyPlot.PolyLine._attributes=Priithon.wxPyPlot.PolyLine-class.html#_attributes,Variable Priithon.wxPyPlot.PolyMarker._attributes=Priithon.wxPyPlot.PolyMarker-class.html#_attributes"><a title="Priithon.plt.plot_objects.axis_object._attributes
Priithon.plt.plot_objects.border_object._attributes
Priithon.plt.plot_objects.image_object._attributes
Priithon.plt.plot_objects.legend_object._attributes
Priithon.plt.plot_objects.line_object._attributes
Priithon.plt.plot_objects.poly_line._attributes
Priithon.plt.plot_objects.poly_marker._attributes
Priithon.plt.plot_objects.text_object._attributes
Priithon.plt.wxplt.plot_canvas._attributes
Priithon.wxPyPlot.PolyLine._attributes
Priithon.wxPyPlot.PolyMarker._attributes" class="py-name" href="#" onclick="return doclink('link-7', '_attributes', 'link-7');">_attributes</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L61"></a><tt class="py-lineno">  61</tt>  <tt class="py-line">        <tt class="py-string">'background_color'</tt><tt class="py-op">:</tt> <tt class="py-op">[</tt><tt class="py-string">'light grey'</tt><tt class="py-op">,</tt><tt id="link-8" class="py-name" targets="Variable Priithon.plt.plot_objects.colors=Priithon.plt.plot_objects-module.html#colors"><a title="Priithon.plt.plot_objects.colors" class="py-name" href="#" onclick="return doclink('link-8', 'colors', 'link-8');">colors</a></tt><tt class="py-op">,</tt><tt class="py-string">"Window background color"</tt> \ </tt>
<a name="L62"></a><tt class="py-lineno">  62</tt>  <tt class="py-line">                                           <tt class="py-string">" Currently broken"</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L63"></a><tt class="py-lineno">  63</tt>  <tt class="py-line">       <tt class="py-string">'aspect_ratio'</tt><tt class="py-op">:</tt> <tt class="py-op">[</tt><tt class="py-string">'normal'</tt><tt class="py-op">,</tt><tt id="link-9" class="py-name"><a title="Priithon.plt.wxplt.aspect_ratios" class="py-name" href="#" onclick="return doclink('link-9', 'aspect_ratios', 'link-6');">aspect_ratios</a></tt><tt class="py-op">,</tt><tt class="py-string">"Set the axis aspect ratio"</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L64"></a><tt class="py-lineno">  64</tt>  <tt class="py-line">       <tt class="py-string">'hold'</tt><tt class="py-op">:</tt> <tt class="py-op">[</tt><tt class="py-string">'off'</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'off'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">"Used externally for adding lines to plot"</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L65"></a><tt class="py-lineno">  65</tt>  <tt class="py-line">     <tt class="py-op">}</tt> </tt>
<a name="L66"></a><tt class="py-lineno">  66</tt>  <tt class="py-line"> </tt>
<a name="L67"></a><tt class="py-lineno">  67</tt>  <tt class="py-line">    <tt id="link-10" class="py-name" targets="Variable Priithon.plt.wxplt.plot_canvas.__type_hack__=Priithon.plt.wxplt.plot_canvas-class.html#__type_hack__"><a title="Priithon.plt.wxplt.plot_canvas.__type_hack__" class="py-name" href="#" onclick="return doclink('link-10', '__type_hack__', 'link-10');">__type_hack__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"plot_canvas"</tt> </tt>
<a name="L68"></a><tt class="py-lineno">  68</tt>  <tt class="py-line">     </tt>
<a name="L69"></a><tt class="py-lineno">  69</tt>  <tt class="py-line">    <tt class="py-comment">#background color is not working...</tt> </tt>
<a name="plot_canvas.__init__"></a><div id="plot_canvas.__init__-def"><a name="L70"></a><tt class="py-lineno">  70</tt> <a class="py-toggle" href="#" id="plot_canvas.__init__-toggle" onclick="return toggle('plot_canvas.__init__');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">,</tt> <tt class="py-param">id</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-param">pos</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">DefaultPosition</tt><tt class="py-op">,</tt> </tt>
<a name="L71"></a><tt class="py-lineno">  71</tt>  <tt class="py-line">                 <tt class="py-param">size</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">DefaultSize</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">attr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.__init__-expanded"><a name="L72"></a><tt class="py-lineno">  72</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Window</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method Priithon.DragAndDrop.ClipTextPanel.__init__()=Priithon.DragAndDrop.ClipTextPanel-class.html#__init__,Method Priithon.DragAndDrop.FileDropPanel.__init__()=Priithon.DragAndDrop.FileDropPanel-class.html#__init__,Method Priithon.DragAndDrop.MyFileDropTarget.__init__()=Priithon.DragAndDrop.MyFileDropTarget-class.html#__init__,Method Priithon.Mrc.Mrc.__init__()=Priithon.Mrc.Mrc-class.html#__init__,Method Priithon.Mrc.Mrc2.__init__()=Priithon.Mrc.Mrc2-class.html#__init__,Method Priithon.Scientific_IO_TextFile.TextFile.__init__()=Priithon.Scientific_IO_TextFile.TextFile-class.html#__init__,Method Priithon.buttonbox._buttonBox.__init__()=Priithon.buttonbox._buttonBox-class.html#__init__,Method Priithon.fileDropPopup.FileDropTarget.__init__()=Priithon.fileDropPopup.FileDropTarget-class.html#__init__,Method Priithon.gridviewer.ArrayGrid.__init__()=Priithon.gridviewer.ArrayGrid-class.html#__init__,Method Priithon.gridviewer.HugeTable.__init__()=Priithon.gridviewer.HugeTable-class.html#__init__,Method Priithon.gridviewer.HugeTableGrid.__init__()=Priithon.gridviewer.HugeTableGrid-class.html#__init__,Method Priithon.guiExceptionFrame.MyFrame.__init__()=Priithon.guiExceptionFrame.MyFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlInfoFrame.__init__()=Priithon.guiInfoFrame.HtmlInfoFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlWindow.__init__()=Priithon.guiInfoFrame.HtmlWindow-class.html#__init__,Method Priithon.guiParams.guiParams.__init__()=Priithon.guiParams.guiParams-class.html#__init__,Method Priithon.histogram.HistogramCanvas.__init__()=Priithon.histogram.HistogramCanvas-class.html#__init__,Method Priithon.histogram.MyCanvasBase.__init__()=Priithon.histogram.MyCanvasBase-class.html#__init__,Method Priithon.mmviewer.GLViewer.__init__()=Priithon.mmviewer.GLViewer-class.html#__init__,Method Priithon.mockNDarray.mockNDarray.__init__()=Priithon.mockNDarray.mockNDarray-class.html#__init__,Method Priithon.ndarray_meta.nd_meta_attribute.__init__()=Priithon.ndarray_meta.nd_meta_attribute-class.html#__init__,Method Priithon.plt.dumb_shelve.DbfilenameShelf.__init__()=Priithon.plt.dumb_shelve.DbfilenameShelf-class.html#__init__,Method Priithon.plt.dumbdbm_patched._Database.__init__()=Priithon.plt.dumbdbm_patched._Database-class.html#__init__,Method Priithon.plt.plot_objects.axis_object.__init__()=Priithon.plt.plot_objects.axis_object-class.html#__init__,Method Priithon.plt.plot_objects.axis_window.__init__()=Priithon.plt.plot_objects.axis_window-class.html#__init__,Method Priithon.plt.plot_objects.border_object.__init__()=Priithon.plt.plot_objects.border_object-class.html#__init__,Method Priithon.plt.plot_objects.graphic_list.__init__()=Priithon.plt.plot_objects.graphic_list-class.html#__init__,Method Priithon.plt.plot_objects.image_object.__init__()=Priithon.plt.plot_objects.image_object-class.html#__init__,Method Priithon.plt.plot_objects.legend_object.__init__()=Priithon.plt.plot_objects.legend_object-class.html#__init__,Method Priithon.plt.plot_objects.line_object.__init__()=Priithon.plt.plot_objects.line_object-class.html#__init__,Method Priithon.plt.plot_objects.poly_line.__init__()=Priithon.plt.plot_objects.poly_line-class.html#__init__,Method Priithon.plt.plot_objects.poly_marker.__init__()=Priithon.plt.plot_objects.poly_marker-class.html#__init__,Method Priithon.plt.plot_objects.poly_points.__init__()=Priithon.plt.plot_objects.poly_points-class.html#__init__,Method Priithon.plt.plot_objects.text_object.__init__()=Priithon.plt.plot_objects.text_object-class.html#__init__,Method Priithon.plt.plot_objects.text_window.__init__()=Priithon.plt.plot_objects.text_window-class.html#__init__,Method Priithon.plt.plot_utility.box_object.__init__()=Priithon.plt.plot_utility.box_object-class.html#__init__,Method Priithon.plt.plot_utility.point_object.__init__()=Priithon.plt.plot_utility.point_object-class.html#__init__,Method Priithon.plt.plot_utility.property_object.__init__()=Priithon.plt.plot_utility.property_object-class.html#__init__,Method Priithon.plt.wxplt.graph_printout.__init__()=Priithon.plt.wxplt.graph_printout-class.html#__init__,Method Priithon.plt.wxplt.plot_canvas.__init__()=Priithon.plt.wxplt.plot_canvas-class.html#__init__,Method Priithon.plt.wxplt.plot_frame.__init__()=Priithon.plt.wxplt.plot_frame-class.html#__init__,Method Priithon.py.PyAlaCarte.App.__init__()=Priithon.py.PyAlaCarte.App-class.html#__init__,Method Priithon.py.PyAlaMode.App.__init__()=Priithon.py.PyAlaMode.App-class.html#__init__,Method Priithon.py.PyAlaModeTest.App.__init__()=Priithon.py.PyAlaModeTest.App-class.html#__init__,Method Priithon.py.buffer.Buffer.__init__()=Priithon.py.buffer.Buffer-class.html#__init__,Method Priithon.py.crust.Calltip.__init__()=Priithon.py.crust.Calltip-class.html#__init__,Method Priithon.py.crust.Crust.__init__()=Priithon.py.crust.Crust-class.html#__init__,Method Priithon.py.crust.CrustFrame.__init__()=Priithon.py.crust.CrustFrame-class.html#__init__,Method Priithon.py.crust.DispatcherListing.__init__()=Priithon.py.crust.DispatcherListing-class.html#__init__,Method Priithon.py.crust.Display.__init__()=Priithon.py.crust.Display-class.html#__init__,Method Priithon.py.crust.SessionListing.__init__()=Priithon.py.crust.SessionListing-class.html#__init__,Method Priithon.py.dispatcher.BoundMethodWeakref.__init__()=Priithon.py.dispatcher.BoundMethodWeakref-class.html#__init__,Method Priithon.py.dispatcher.DispatcherError.__init__()=Priithon.py.dispatcher.DispatcherError-class.html#__init__,Method Priithon.py.document.Document.__init__()=Priithon.py.document.Document-class.html#__init__,Method Priithon.py.editor.DialogResults.__init__()=Priithon.py.editor.DialogResults-class.html#__init__,Method Priithon.py.editor.EditWindow.__init__()=Priithon.py.editor.EditWindow-class.html#__init__,Method Priithon.py.editor.Editor.__init__()=Priithon.py.editor.Editor-class.html#__init__,Method Priithon.py.editor.EditorFrame.__init__()=Priithon.py.editor.EditorFrame-class.html#__init__,Method Priithon.py.editor.EditorNotebook.__init__()=Priithon.py.editor.EditorNotebook-class.html#__init__,Method Priithon.py.editor.EditorNotebookFrame.__init__()=Priithon.py.editor.EditorNotebookFrame-class.html#__init__,Method Priithon.py.editor.EditorShellNotebook.__init__()=Priithon.py.editor.EditorShellNotebook-class.html#__init__,Method Priithon.py.editor.EditorShellNotebookFrame.__init__()=Priithon.py.editor.EditorShellNotebookFrame-class.html#__init__,Method Priithon.py.editwindow.EditWindow.__init__()=Priithon.py.editwindow.EditWindow-class.html#__init__,Method Priithon.py.filling.Filling.__init__()=Priithon.py.filling.Filling-class.html#__init__,Method Priithon.py.filling.FillingFrame.__init__()=Priithon.py.filling.FillingFrame-class.html#__init__,Method Priithon.py.filling.FillingText.__init__()=Priithon.py.filling.FillingText-class.html#__init__,Method Priithon.py.filling.FillingTree.__init__()=Priithon.py.filling.FillingTree-class.html#__init__,Method Priithon.py.frame.Frame.__init__()=Priithon.py.frame.Frame-class.html#__init__,Method Priithon.py.interpreter.Interpreter.__init__()=Priithon.py.interpreter.Interpreter-class.html#__init__,Method Priithon.py.interpreter.InterpreterAlaCarte.__init__()=Priithon.py.interpreter.InterpreterAlaCarte-class.html#__init__,Method Priithon.py.pseudo.PseudoFile.__init__()=Priithon.py.pseudo.PseudoFile-class.html#__init__,Method Priithon.py.pseudo.PseudoFileErr.__init__()=Priithon.py.pseudo.PseudoFileErr-class.html#__init__,Method Priithon.py.pseudo.PseudoFileIn.__init__()=Priithon.py.pseudo.PseudoFileIn-class.html#__init__,Method Priithon.py.pseudo.PseudoFileOut.__init__()=Priithon.py.pseudo.PseudoFileOut-class.html#__init__,Method Priithon.py.pseudo.PseudoKeyword.__init__()=Priithon.py.pseudo.PseudoKeyword-class.html#__init__,Method Priithon.py.shell.Shell.__init__()=Priithon.py.shell.Shell-class.html#__init__,Method Priithon.py.shell.ShellFacade.__init__()=Priithon.py.shell.ShellFacade-class.html#__init__,Method Priithon.py.shell.ShellFrame.__init__()=Priithon.py.shell.ShellFrame-class.html#__init__,Method Priithon.readerSPE.File.__init__()=Priithon.readerSPE.File-class.html#__init__,Method Priithon.scalePanel.scalePanel.__init__()=Priithon.scalePanel.scalePanel-class.html#__init__,Method Priithon.splitND.TestTransientPopup.__init__()=Priithon.splitND.TestTransientPopup-class.html#__init__,Method Priithon.splitND.spv.__init__()=Priithon.splitND.spv-class.html#__init__,Method Priithon.splitND2.spv.__init__()=Priithon.splitND2.spv-class.html#__init__,Method Priithon.splitNDcommon.spvCommon.__init__()=Priithon.splitNDcommon.spvCommon-class.html#__init__,Method Priithon.syncViewersGui.syncViewersGui.__init__()=Priithon.syncViewersGui.syncViewersGui-class.html#__init__,Method Priithon.useful.deco_memoized.__init__()=Priithon.useful.deco_memoized-class.html#__init__,Method Priithon.usefulX._listArrayViewer.__init__()=Priithon.usefulX._listArrayViewer-class.html#__init__,Method Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__()=Priithon.usefulX._listFilesViewer.MyFileDropTarget-class.html#__init__,Method Priithon.usefulX._listFilesViewer.__init__()=Priithon.usefulX._listFilesViewer-class.html#__init__,Method Priithon.viewer.GLViewer.__init__()=Priithon.viewer.GLViewer-class.html#__init__,Method Priithon.viewer2.GLViewer2.__init__()=Priithon.viewer2.GLViewer2-class.html#__init__,Method Priithon.viewerCommon.GLViewerCommon.__init__()=Priithon.viewerCommon.GLViewerCommon-class.html#__init__,Method Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__()=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherConnection.__init__()=Priithon.wxAsyncDispatcher.DispatcherConnection-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherServer.__init__()=Priithon.wxAsyncDispatcher.DispatcherServer-class.html#__init__,Method Priithon.wxAsyncDispatcher.MainWindow.__init__()=Priithon.wxAsyncDispatcher.MainWindow-class.html#__init__,Method Priithon.wxPyPlot.FloatDCWrapper.__init__()=Priithon.wxPyPlot.FloatDCWrapper-class.html#__init__,Method Priithon.wxPyPlot.PlotCanvas.__init__()=Priithon.wxPyPlot.PlotCanvas-class.html#__init__,Method Priithon.wxPyPlot.PlotGraphics.__init__()=Priithon.wxPyPlot.PlotGraphics-class.html#__init__,Method Priithon.wxPyPlot.PolyLine.__init__()=Priithon.wxPyPlot.PolyLine-class.html#__init__,Method Priithon.wxPyPlot.PolyMarker.__init__()=Priithon.wxPyPlot.PolyMarker-class.html#__init__,Method Priithon.wxPyPlot.PolyPoints.__init__()=Priithon.wxPyPlot.PolyPoints-class.html#__init__,Method Priithon.wxPyPlot.plot_printout.__init__()=Priithon.wxPyPlot.plot_printout-class.html#__init__,Method Priithon.zslider.ZSlider.__init__()=Priithon.zslider.ZSlider-class.html#__init__"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-11', '__init__', 'link-11');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Variable Priithon.py.buffer.Buffer.id=Priithon.py.buffer.Buffer-class.html#id"><a title="Priithon.py.buffer.Buffer.id" class="py-name" href="#" onclick="return doclink('link-12', 'id', 'link-12');">id</a></tt><tt class="py-op">,</tt> <tt class="py-name">pos</tt><tt class="py-op">,</tt><tt id="link-13" class="py-name" targets="Method Priithon.plt.plot_objects.text_object.size()=Priithon.plt.plot_objects.text_object-class.html#size,Method Priithon.plt.plot_utility.box_object.size()=Priithon.plt.plot_utility.box_object-class.html#size,Variable Priithon.viewerRubberbandMode.viewerRubberbandMode.size=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#size"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-13', 'size', 'link-13');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno">  73</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_PAINT</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_paint()=Priithon.plt.wxplt.plot_canvas-class.html#on_paint"><a title="Priithon.plt.wxplt.plot_canvas.on_paint" class="py-name" href="#" onclick="return doclink('link-14', 'on_paint', 'link-14');">on_paint</a></tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno">  74</tt>  <tt class="py-line"> </tt>
<a name="L75"></a><tt class="py-lineno">  75</tt>  <tt class="py-line">        <tt id="link-15" class="py-name" targets="Class Priithon.plt.plot_utility.property_object=Priithon.plt.plot_utility.property_object-class.html"><a title="Priithon.plt.plot_utility.property_object" class="py-name" href="#" onclick="return doclink('link-15', 'property_object', 'link-15');">property_object</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-16', '__init__', 'link-11');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">attr</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno">  76</tt>  <tt class="py-line">        <tt class="py-name">background</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NamedColour</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">background_color</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno">  77</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">backgroundBrush</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Brush</tt><tt class="py-op">(</tt><tt class="py-name">background</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno">  78</tt>  <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno">  79</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SetBackgroundColour</tt><tt class="py-op">(</tt><tt class="py-name">background</tt><tt class="py-op">)</tt>  </tt>
<a name="L80"></a><tt class="py-lineno">  80</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SetBackgroundStyle</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">BG_STYLE_CUSTOM</tt><tt class="py-op">)</tt> <tt class="py-comment"># seb added: no flickering</tt> </tt>
<a name="L81"></a><tt class="py-lineno">  81</tt>  <tt class="py-line">        <tt class="py-comment">##self.title = text_object('')</tt> </tt>
<a name="L82"></a><tt class="py-lineno">  82</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##self.x_title = text_object('')</tt> </tt>
<a name="L83"></a><tt class="py-lineno">  83</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##self.y_title = text_object('')</tt> </tt>
<a name="L84"></a><tt class="py-lineno">  84</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Function Priithon.plt.interface.title()=Priithon.plt.interface-module.html#title,Method Priithon.plt.wxplt.plot_frame.title()=Priithon.plt.wxplt.plot_frame-class.html#title"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-17', 'title', 'link-17');">title</a></tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name" targets="Class Priithon.plt.plot_objects.text_window=Priithon.plt.plot_objects.text_window-class.html"><a title="Priithon.plt.plot_objects.text_window" class="py-name" href="#" onclick="return doclink('link-18', 'text_window', 'link-18');">text_window</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L85"></a><tt class="py-lineno">  85</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt> <tt class="py-op">=</tt> <tt id="link-19" class="py-name"><a title="Priithon.plt.plot_objects.text_window" class="py-name" href="#" onclick="return doclink('link-19', 'text_window', 'link-18');">text_window</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno">  86</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt> <tt class="py-op">=</tt> <tt id="link-20" class="py-name"><a title="Priithon.plt.plot_objects.text_window" class="py-name" href="#" onclick="return doclink('link-20', 'text_window', 'link-18');">text_window</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno">  87</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">all_titles</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-21', 'title', 'link-17');">title</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">]</tt> <tt class="py-comment">#handy to have</tt> </tt>
<a name="L88"></a><tt class="py-lineno">  88</tt>  <tt class="py-line">        <tt class="py-comment">##self.x_axis = axis_object(graph_location='above',rotate=0)        </tt> </tt>
<a name="L89"></a><tt class="py-lineno">  89</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##self.y_axis = axis_object(graph_location='right',rotate=90)</tt> </tt>
<a name="L90"></a><tt class="py-lineno">  90</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt> <tt class="py-op">=</tt> <tt id="link-22" class="py-name" targets="Class Priithon.plt.plot_objects.axis_window=Priithon.plt.plot_objects.axis_window-class.html"><a title="Priithon.plt.plot_objects.axis_window" class="py-name" href="#" onclick="return doclink('link-22', 'axis_window', 'link-22');">axis_window</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">graph_location</tt><tt class="py-op">=</tt><tt class="py-string">'above'</tt><tt class="py-op">,</tt><tt id="link-23" class="py-name" targets="Function Priithon.plt.plot_utility.rotate()=Priithon.plt.plot_utility-module.html#rotate"><a title="Priithon.plt.plot_utility.rotate" class="py-name" href="#" onclick="return doclink('link-23', 'rotate', 'link-23');">rotate</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt>         </tt>
<a name="L91"></a><tt class="py-lineno">  91</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt> <tt class="py-op">=</tt> <tt id="link-24" class="py-name"><a title="Priithon.plt.plot_objects.axis_window" class="py-name" href="#" onclick="return doclink('link-24', 'axis_window', 'link-22');">axis_window</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">graph_location</tt><tt class="py-op">=</tt><tt class="py-string">'right'</tt><tt class="py-op">,</tt><tt id="link-25" class="py-name"><a title="Priithon.plt.plot_utility.rotate" class="py-name" href="#" onclick="return doclink('link-25', 'rotate', 'link-23');">rotate</a></tt><tt class="py-op">=</tt><tt class="py-number">90</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno">  92</tt>  <tt class="py-line"> </tt>
<a name="L93"></a><tt class="py-lineno">  93</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt> <tt class="py-op">=</tt> <tt id="link-26" class="py-name" targets="Class Priithon.plt.plot_objects.graphic_list=Priithon.plt.plot_objects.graphic_list-class.html"><a title="Priithon.plt.plot_objects.graphic_list" class="py-name" href="#" onclick="return doclink('link-26', 'graphic_list', 'link-26');">graphic_list</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno">  94</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt> <tt class="py-op">=</tt> <tt id="link-27" class="py-name" targets="Class Priithon.plt.plot_objects.auto_line_list=Priithon.plt.plot_objects.auto_line_list-class.html"><a title="Priithon.plt.plot_objects.auto_line_list" class="py-name" href="#" onclick="return doclink('link-27', 'auto_line_list', 'link-27');">auto_line_list</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>  <tt class="py-comment"># make this the data object.</tt> </tt>
<a name="L95"></a><tt class="py-lineno">  95</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">legend</tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name" targets="Class Priithon.plt.plot_objects.legend_object=Priithon.plt.plot_objects.legend_object-class.html"><a title="Priithon.plt.plot_objects.legend_object" class="py-name" href="#" onclick="return doclink('link-28', 'legend_object', 'link-28');">legend_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>  </tt>
<a name="L96"></a><tt class="py-lineno">  96</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">text_list</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>  <tt class="py-comment"># list of text objects to place on screen</tt> </tt>
<a name="L97"></a><tt class="py-lineno">  97</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">overlays</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>   <tt class="py-comment"># list of objects to draw on top of graph </tt> </tt>
<a name="L98"></a><tt class="py-lineno">  98</tt>  <tt class="py-line">                               <tt class="py-comment"># (boxes, circles, etc.)</tt> </tt>
<a name="L99"></a><tt class="py-lineno">  99</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##self.y2_axis = axis_object(graph_location='left',rotate=90) </tt> </tt>
<a name="L100"></a><tt class="py-lineno"> 100</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L101"></a><tt class="py-lineno"> 101</tt>  <tt class="py-line">        <tt class="py-comment"># zoom selection helpers</tt> </tt>
<a name="L102"></a><tt class="py-lineno"> 102</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L103"></a><tt class="py-lineno"> 103</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Point</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno"> 104</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Point</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno"> 105</tt>  <tt class="py-line"> </tt>
<a name="L106"></a><tt class="py-lineno"> 106</tt>  <tt class="py-line">        <tt class="py-comment">#20090603: zoom history</tt> </tt>
<a name="L107"></a><tt class="py-lineno"> 107</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L108"></a><tt class="py-lineno"> 108</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L109"></a><tt class="py-lineno"> 109</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_zoom_forget()=Priithon.plt.wxplt.plot_canvas-class.html#on_zoom_forget"><a title="Priithon.plt.wxplt.plot_canvas.on_zoom_forget" class="py-name" href="#" onclick="return doclink('link-29', 'on_zoom_forget', 'link-29');">on_zoom_forget</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L110"></a><tt class="py-lineno"> 110</tt>  <tt class="py-line"> </tt>
<a name="L111"></a><tt class="py-lineno"> 111</tt>  <tt class="py-line">        <tt class="py-comment"># mouse events</tt> </tt>
<a name="L112"></a><tt class="py-lineno"> 112</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_RIGHT_DOWN</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_right_down()=Priithon.plt.wxplt.plot_canvas-class.html#on_right_down"><a title="Priithon.plt.wxplt.plot_canvas.on_right_down" class="py-name" href="#" onclick="return doclink('link-30', 'on_right_down', 'link-30');">on_right_down</a></tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno"> 113</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_LEFT_DOWN</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_mouse_event()=Priithon.plt.wxplt.plot_canvas-class.html#on_mouse_event"><a title="Priithon.plt.wxplt.plot_canvas.on_mouse_event" class="py-name" href="#" onclick="return doclink('link-31', 'on_mouse_event', 'link-31');">on_mouse_event</a></tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno"> 114</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_LEFT_UP</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.on_mouse_event" class="py-name" href="#" onclick="return doclink('link-32', 'on_mouse_event', 'link-31');">on_mouse_event</a></tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno"> 115</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MOTION</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.on_mouse_event" class="py-name" href="#" onclick="return doclink('link-33', 'on_mouse_event', 'link-31');">on_mouse_event</a></tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno"> 116</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MOTION</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.on_mouse_event" class="py-name" href="#" onclick="return doclink('link-34', 'on_mouse_event', 'link-31');">on_mouse_event</a></tt><tt class="py-op">)</tt> </tt>
<a name="L117"></a><tt class="py-lineno"> 117</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_SIZE</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.update()=Priithon.plt.wxplt.plot_canvas-class.html#update,Method Priithon.plt.wxplt.plot_frame.update()=Priithon.plt.wxplt.plot_frame-class.html#update"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-35', 'update', 'link-35');">update</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L118"></a><tt class="py-lineno"> 118</tt>  <tt class="py-line"> </tt>
<a name="L119"></a><tt class="py-lineno"> 119</tt>  <tt class="py-line">    <tt class="py-comment"># event handler</tt> </tt>
<a name="L120"></a><tt class="py-lineno"> 120</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="plot_canvas.on_mouse_event"></a><div id="plot_canvas.on_mouse_event-def"><a name="L121"></a><tt class="py-lineno"> 121</tt> <a class="py-toggle" href="#" id="plot_canvas.on_mouse_event-toggle" onclick="return toggle('plot_canvas.on_mouse_event');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_mouse_event">on_mouse_event</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_mouse_event-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_mouse_event-expanded"><a name="L122"></a><tt class="py-lineno"> 122</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">LeftDown</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L123"></a><tt class="py-lineno"> 123</tt>  <tt class="py-line">            <tt class="py-comment"># start zoom selection</tt> </tt>
<a name="L124"></a><tt class="py-lineno"> 124</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetPosition</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L125"></a><tt class="py-lineno"> 125</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetPosition</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno"> 126</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L127"></a><tt class="py-lineno"> 127</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">LeftUp</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt><tt class="py-op">:</tt> </tt>
<a name="L128"></a><tt class="py-lineno"> 128</tt>  <tt class="py-line">            <tt class="py-comment"># zoom in</tt> </tt>
<a name="L129"></a><tt class="py-lineno"> 129</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.zoom()=Priithon.plt.wxplt.plot_canvas-class.html#zoom,Method Priithon.py.shell.Shell.zoom()=Priithon.py.shell.Shell-class.html#zoom,Method Priithon.viewerCommon.GLViewerCommon.zoom()=Priithon.viewerCommon.GLViewerCommon-class.html#zoom"><a title="Priithon.plt.wxplt.plot_canvas.zoom
Priithon.py.shell.Shell.zoom
Priithon.viewerCommon.GLViewerCommon.zoom" class="py-name" href="#" onclick="return doclink('link-36', 'zoom', 'link-36');">zoom</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetPosition</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno"> 130</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L131"></a><tt class="py-lineno"> 131</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">LeftIsDown</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt><tt class="py-op">:</tt> </tt>
<a name="L132"></a><tt class="py-lineno"> 132</tt>  <tt class="py-line">            <tt class="py-comment"># update zoom selection</tt> </tt>
<a name="L133"></a><tt class="py-lineno"> 133</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.rubberband()=Priithon.plt.wxplt.plot_canvas-class.html#rubberband"><a title="Priithon.plt.wxplt.plot_canvas.rubberband" class="py-name" href="#" onclick="return doclink('link-37', 'rubberband', 'link-37');">rubberband</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetPosition</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno"> 134</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno"> 135</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
</div><a name="L136"></a><tt class="py-lineno"> 136</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_auto_zoom"></a><div id="plot_canvas.on_auto_zoom-def"><a name="L137"></a><tt class="py-lineno"> 137</tt> <a class="py-toggle" href="#" id="plot_canvas.on_auto_zoom-toggle" onclick="return toggle('plot_canvas.on_auto_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_auto_zoom">on_auto_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_auto_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_auto_zoom-expanded"><a name="L138"></a><tt class="py-lineno"> 138</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.auto_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#auto_zoom"><a title="Priithon.plt.wxplt.plot_canvas.auto_zoom" class="py-name" href="#" onclick="return doclink('link-38', 'auto_zoom', 'link-38');">auto_zoom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
</div><a name="plot_canvas.on_prev_zoom"></a><div id="plot_canvas.on_prev_zoom-def"><a name="L139"></a><tt class="py-lineno"> 139</tt> <a class="py-toggle" href="#" id="plot_canvas.on_prev_zoom-toggle" onclick="return toggle('plot_canvas.on_prev_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_prev_zoom">on_prev_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_prev_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_prev_zoom-expanded"><a name="L140"></a><tt class="py-lineno"> 140</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.prev_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#prev_zoom"><a title="Priithon.plt.wxplt.plot_canvas.prev_zoom" class="py-name" href="#" onclick="return doclink('link-39', 'prev_zoom', 'link-39');">prev_zoom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
</div><a name="plot_canvas.on_next_zoom"></a><div id="plot_canvas.on_next_zoom-def"><a name="L141"></a><tt class="py-lineno"> 141</tt> <a class="py-toggle" href="#" id="plot_canvas.on_next_zoom-toggle" onclick="return toggle('plot_canvas.on_next_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_next_zoom">on_next_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_next_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_next_zoom-expanded"><a name="L142"></a><tt class="py-lineno"> 142</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.next_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#next_zoom"><a title="Priithon.plt.wxplt.plot_canvas.next_zoom" class="py-name" href="#" onclick="return doclink('link-40', 'next_zoom', 'link-40');">next_zoom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
</div><a name="plot_canvas.on_zoom_forget"></a><div id="plot_canvas.on_zoom_forget-def"><a name="L143"></a><tt class="py-lineno"> 143</tt> <a class="py-toggle" href="#" id="plot_canvas.on_zoom_forget-toggle" onclick="return toggle('plot_canvas.on_zoom_forget');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_zoom_forget">on_zoom_forget</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_zoom_forget-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_zoom_forget-expanded"><a name="L144"></a><tt class="py-lineno"> 144</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> <tt class="py-comment"># force clearing of old hist</tt> </tt>
<a name="L145"></a><tt class="py-lineno"> 145</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas._saveZoomHist()=Priithon.plt.wxplt.plot_canvas-class.html#_saveZoomHist"><a title="Priithon.plt.wxplt.plot_canvas._saveZoomHist" class="py-name" href="#" onclick="return doclink('link-41', '_saveZoomHist', 'link-41');">_saveZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L146"></a><tt class="py-lineno"> 146</tt>  <tt class="py-line"> </tt>
<a name="L147"></a><tt class="py-lineno"> 147</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.axis"></a><div id="plot_canvas.axis-def"><a name="L148"></a><tt class="py-lineno"> 148</tt> <a class="py-toggle" href="#" id="plot_canvas.axis-toggle" onclick="return toggle('plot_canvas.axis');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#axis">axis</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">setting</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.axis-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.axis-expanded"><a name="L149"></a><tt class="py-lineno"> 149</tt>  <tt class="py-line">        <tt class="py-comment">#seb:     # copy pasted from   interface.py::.axis(setting)</tt> </tt>
<a name="L150"></a><tt class="py-lineno"> 150</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#         except this is not just for "active" figure</tt> </tt>
<a name="L151"></a><tt class="py-lineno"> 151</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">x_ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt> </tt>
<a name="L152"></a><tt class="py-lineno"> 152</tt>  <tt class="py-line">        <tt class="py-comment">#CHECK print type(x_ticks), dir(x_ticks)    </tt> </tt>
<a name="L153"></a><tt class="py-lineno"> 153</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">x_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt> <tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L154"></a><tt class="py-lineno"> 154</tt>  <tt class="py-line">        <tt class="py-name">y_ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt> </tt>
<a name="L155"></a><tt class="py-lineno"> 155</tt>  <tt class="py-line">        <tt class="py-name">y_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt> <tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L156"></a><tt class="py-lineno"> 156</tt>  <tt class="py-line">        <tt class="py-name">axes</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">float64</tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno"> 157</tt>  <tt class="py-line">        <tt class="py-comment"># had to use client below cause of __setattr__ troubles in plot_frame</tt> </tt>
<a name="L158"></a><tt class="py-lineno"> 158</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'normal'</tt><tt class="py-op">:</tt> </tt>
<a name="L159"></a><tt class="py-lineno"> 159</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt> <tt class="py-op">=</tt> <tt class="py-name">setting</tt> </tt>
<a name="L160"></a><tt class="py-lineno"> 160</tt>  <tt class="py-line">            <tt class="py-comment">#plt.interface._auto_all()</tt> </tt>
<a name="L161"></a><tt class="py-lineno"> 161</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L162"></a><tt class="py-lineno"> 162</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L163"></a><tt class="py-lineno"> 163</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L164"></a><tt class="py-lineno"> 164</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt>     </tt>
<a name="L165"></a><tt class="py-lineno"> 165</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'equal'</tt><tt class="py-op">:</tt> </tt>
<a name="L166"></a><tt class="py-lineno"> 166</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt> <tt class="py-op">=</tt> <tt class="py-name">setting</tt>     </tt>
<a name="L167"></a><tt class="py-lineno"> 167</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'freeze'</tt><tt class="py-op">:</tt> </tt>
<a name="L168"></a><tt class="py-lineno"> 168</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L169"></a><tt class="py-lineno"> 169</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L170"></a><tt class="py-lineno"> 170</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">x_interval</tt> </tt>
<a name="L171"></a><tt class="py-lineno"> 171</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">y_interval</tt>         </tt>
<a name="L172"></a><tt class="py-lineno"> 172</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'tight'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L173"></a><tt class="py-lineno"> 173</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'fit'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt> </tt>
<a name="L174"></a><tt class="py-lineno"> 174</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'fit'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt> </tt>
<a name="L175"></a><tt class="py-lineno"> 175</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L176"></a><tt class="py-lineno"> 176</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L177"></a><tt class="py-lineno"> 177</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L178"></a><tt class="py-lineno"> 178</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L179"></a><tt class="py-lineno"> 179</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L180"></a><tt class="py-lineno"> 180</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas._saveZoomHist" class="py-name" href="#" onclick="return doclink('link-42', '_saveZoomHist', 'link-41');">_saveZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L181"></a><tt class="py-lineno"> 181</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-43', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
</div><a name="L182"></a><tt class="py-lineno"> 182</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_equal_aspect_ratio"></a><div id="plot_canvas.on_equal_aspect_ratio-def"><a name="L183"></a><tt class="py-lineno"> 183</tt> <a class="py-toggle" href="#" id="plot_canvas.on_equal_aspect_ratio-toggle" onclick="return toggle('plot_canvas.on_equal_aspect_ratio');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_equal_aspect_ratio">on_equal_aspect_ratio</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_equal_aspect_ratio-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_equal_aspect_ratio-expanded"><a name="L184"></a><tt class="py-lineno"> 184</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Function Priithon.plt.interface.axis()=Priithon.plt.interface-module.html#axis,Method Priithon.plt.wxplt.plot_canvas.axis()=Priithon.plt.wxplt.plot_canvas-class.html#axis"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-44', 'axis', 'link-44');">axis</a></tt><tt class="py-op">(</tt><tt class="py-name">setting</tt><tt class="py-op">=</tt><tt class="py-string">'equal'</tt><tt class="py-op">)</tt> </tt>
</div><a name="plot_canvas.on_any_aspect_ratio"></a><div id="plot_canvas.on_any_aspect_ratio-def"><a name="L185"></a><tt class="py-lineno"> 185</tt> <a class="py-toggle" href="#" id="plot_canvas.on_any_aspect_ratio-toggle" onclick="return toggle('plot_canvas.on_any_aspect_ratio');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_any_aspect_ratio">on_any_aspect_ratio</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_any_aspect_ratio-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_any_aspect_ratio-expanded"><a name="L186"></a><tt class="py-lineno"> 186</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-45', 'axis', 'link-44');">axis</a></tt><tt class="py-op">(</tt><tt class="py-name">setting</tt><tt class="py-op">=</tt><tt class="py-string">'normal'</tt><tt class="py-op">)</tt> </tt>
</div><a name="plot_canvas.on_axis_freeze"></a><div id="plot_canvas.on_axis_freeze-def"><a name="L187"></a><tt class="py-lineno"> 187</tt> <a class="py-toggle" href="#" id="plot_canvas.on_axis_freeze-toggle" onclick="return toggle('plot_canvas.on_axis_freeze');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_axis_freeze">on_axis_freeze</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_axis_freeze-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_axis_freeze-expanded"><a name="L188"></a><tt class="py-lineno"> 188</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-46', 'axis', 'link-44');">axis</a></tt><tt class="py-op">(</tt><tt class="py-name">setting</tt><tt class="py-op">=</tt><tt class="py-string">'freeze'</tt><tt class="py-op">)</tt> </tt>
</div><a name="plot_canvas.on_axis_tight"></a><div id="plot_canvas.on_axis_tight-def"><a name="L189"></a><tt class="py-lineno"> 189</tt> <a class="py-toggle" href="#" id="plot_canvas.on_axis_tight-toggle" onclick="return toggle('plot_canvas.on_axis_tight');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_axis_tight">on_axis_tight</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_axis_tight-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_axis_tight-expanded"><a name="L190"></a><tt class="py-lineno"> 190</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-47', 'axis', 'link-44');">axis</a></tt><tt class="py-op">(</tt><tt class="py-name">setting</tt><tt class="py-op">=</tt><tt class="py-string">'tight'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L191"></a><tt class="py-lineno"> 191</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_bkg_color"></a><div id="plot_canvas.on_bkg_color-def"><a name="L192"></a><tt class="py-lineno"> 192</tt> <a class="py-toggle" href="#" id="plot_canvas.on_bkg_color-toggle" onclick="return toggle('plot_canvas.on_bkg_color');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_bkg_color">on_bkg_color</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_bkg_color-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_bkg_color-expanded"><a name="L193"></a><tt class="py-lineno"> 193</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">backgroundBrush</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Brush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetColourFromUser</tt><tt class="py-op">(</tt><tt class="py-name">colInit</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">backgroundBrush</tt><tt class="py-op">.</tt><tt class="py-name">Colour</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L194"></a><tt class="py-lineno"> 194</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name" targets="Method Priithon.plt.plot_objects.auto_line_list.draw()=Priithon.plt.plot_objects.auto_line_list-class.html#draw,Method Priithon.plt.plot_objects.axis_object.draw()=Priithon.plt.plot_objects.axis_object-class.html#draw,Method Priithon.plt.plot_objects.border_object.draw()=Priithon.plt.plot_objects.border_object-class.html#draw,Method Priithon.plt.plot_objects.graphic_list.draw()=Priithon.plt.plot_objects.graphic_list-class.html#draw,Method Priithon.plt.plot_objects.image_object.draw()=Priithon.plt.plot_objects.image_object-class.html#draw,Method Priithon.plt.plot_objects.legend_object.draw()=Priithon.plt.plot_objects.legend_object-class.html#draw,Method Priithon.plt.plot_objects.line_object.draw()=Priithon.plt.plot_objects.line_object-class.html#draw,Method Priithon.plt.plot_objects.poly_line.draw()=Priithon.plt.plot_objects.poly_line-class.html#draw,Method Priithon.plt.plot_objects.poly_marker.draw()=Priithon.plt.plot_objects.poly_marker-class.html#draw,Method Priithon.plt.plot_objects.text_object.draw()=Priithon.plt.plot_objects.text_object-class.html#draw,Method Priithon.plt.wxplt.plot_canvas.draw()=Priithon.plt.wxplt.plot_canvas-class.html#draw,Method Priithon.wxPyPlot.PlotGraphics.draw()=Priithon.wxPyPlot.PlotGraphics-class.html#draw,Method Priithon.wxPyPlot.PolyLine.draw()=Priithon.wxPyPlot.PolyLine-class.html#draw,Method Priithon.wxPyPlot.PolyMarker.draw()=Priithon.wxPyPlot.PolyMarker-class.html#draw"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-48', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L195"></a><tt class="py-lineno"> 195</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_hold"></a><div id="plot_canvas.on_hold-def"><a name="L196"></a><tt class="py-lineno"> 196</tt> <a class="py-toggle" href="#" id="plot_canvas.on_hold-toggle" onclick="return toggle('plot_canvas.on_hold');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_hold">on_hold</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_hold-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_hold-expanded"><a name="L197"></a><tt class="py-lineno"> 197</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetParent</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Function Priithon.plt.interface.hold()=Priithon.plt.interface-module.html#hold"><a title="Priithon.plt.interface.hold" class="py-name" href="#" onclick="return doclink('link-49', 'hold', 'link-49');">hold</a></tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">IsChecked</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-string">"yes"</tt> <tt class="py-keyword">or</tt> <tt class="py-string">"no"</tt> </tt>
</div><a name="plot_canvas.on_inspectGUI"></a><div id="plot_canvas.on_inspectGUI-def"><a name="L198"></a><tt class="py-lineno"> 198</tt> <a class="py-toggle" href="#" id="plot_canvas.on_inspectGUI-toggle" onclick="return toggle('plot_canvas.on_inspectGUI');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_inspectGUI">on_inspectGUI</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_inspectGUI-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_inspectGUI-expanded"><a name="L199"></a><tt class="py-lineno"> 199</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt id="link-50" class="py-name" targets="Package Priithon=Priithon-module.html"><a title="Priithon" class="py-name" href="#" onclick="return doclink('link-50', 'Priithon', 'link-50');">Priithon</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Module Priithon.all=Priithon.all-module.html"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-51', 'all', 'link-51');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L200"></a><tt class="py-lineno"> 200</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name" targets="Function Priithon.usefulX.vPlotInspectDatapointsGUI()=Priithon.usefulX-module.html#vPlotInspectDatapointsGUI"><a title="Priithon.usefulX.vPlotInspectDatapointsGUI" class="py-name" href="#" onclick="return doclink('link-52', 'vPlotInspectDatapointsGUI', 'link-52');">vPlotInspectDatapointsGUI</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetParent</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L201"></a><tt class="py-lineno"> 201</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_vPlotslider"></a><div id="plot_canvas.on_vPlotslider-def"><a name="L202"></a><tt class="py-lineno"> 202</tt> <a class="py-toggle" href="#" id="plot_canvas.on_vPlotslider-toggle" onclick="return toggle('plot_canvas.on_vPlotslider');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_vPlotslider">on_vPlotslider</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_vPlotslider-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_vPlotslider-expanded"><a name="L203"></a><tt class="py-lineno"> 203</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt id="link-53" class="py-name"><a title="Priithon" class="py-name" href="#" onclick="return doclink('link-53', 'Priithon', 'link-50');">Priithon</a></tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-54', 'all', 'link-51');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L204"></a><tt class="py-lineno"> 204</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Function Priithon.usefulX.vPlotAsSliderGUI()=Priithon.usefulX-module.html#vPlotAsSliderGUI"><a title="Priithon.usefulX.vPlotAsSliderGUI" class="py-name" href="#" onclick="return doclink('link-55', 'vPlotAsSliderGUI', 'link-55');">vPlotAsSliderGUI</a></tt><tt class="py-op">(</tt><tt class="py-name">figureNo</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetParent</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L205"></a><tt class="py-lineno"> 205</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_paint"></a><div id="plot_canvas.on_paint-def"><a name="L206"></a><tt class="py-lineno"> 206</tt> <a class="py-toggle" href="#" id="plot_canvas.on_paint-toggle" onclick="return toggle('plot_canvas.on_paint');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_paint">on_paint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_paint-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_paint-expanded"><a name="L207"></a><tt class="py-lineno"> 207</tt>  <tt class="py-line">        <tt class="py-comment">#self.draw(wx.PaintDC(self))</tt> </tt>
<a name="L208"></a><tt class="py-lineno"> 208</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-56', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">BufferedPaintDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>  <tt class="py-comment"># seb: no flickering</tt> </tt>
</div><a name="L209"></a><tt class="py-lineno"> 209</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.on_right_down"></a><div id="plot_canvas.on_right_down-def"><a name="L210"></a><tt class="py-lineno"> 210</tt> <a class="py-toggle" href="#" id="plot_canvas.on_right_down-toggle" onclick="return toggle('plot_canvas.on_right_down');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#on_right_down">on_right_down</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.on_right_down-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.on_right_down-expanded"><a name="L211"></a><tt class="py-lineno"> 211</tt>  <tt class="py-line">        <tt class="py-name">menu_found</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L212"></a><tt class="py-lineno"> 212</tt>  <tt class="py-line">        <tt class="py-name">pos</tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetX</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetY</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L213"></a><tt class="py-lineno"> 213</tt>  <tt class="py-line">        <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno"> 214</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-57" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-57', 'title', 'link-17');">title</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">all_titles</tt><tt class="py-op">:</tt> </tt>
<a name="L215"></a><tt class="py-lineno"> 215</tt>  <tt class="py-line">            <tt id="link-58" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-58', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method Priithon.plt.plot_objects.text_object.set_dc()=Priithon.plt.plot_objects.text_object-class.html#set_dc"><a title="Priithon.plt.plot_objects.text_object.set_dc" class="py-name" href="#" onclick="return doclink('link-59', 'set_dc', 'link-59');">set_dc</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> <tt class="py-comment"># this dc stuff is a pain...</tt> </tt>
<a name="L216"></a><tt class="py-lineno"> 216</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-60" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-60', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.contains()=Priithon.plt.plot_objects.axis_object-class.html#contains,Method Priithon.plt.plot_utility.box_object.contains()=Priithon.plt.plot_utility.box_object-class.html#contains"><a title="Priithon.plt.plot_objects.axis_object.contains
Priithon.plt.plot_utility.box_object.contains" class="py-name" href="#" onclick="return doclink('link-61', 'contains', 'link-61');">contains</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L217"></a><tt class="py-lineno"> 217</tt>  <tt class="py-line">                <tt id="link-62" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-62', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Method Priithon.plt.plot_objects.axis_window.format_popup()=Priithon.plt.plot_objects.axis_window-class.html#format_popup,Method Priithon.plt.plot_objects.text_window.format_popup()=Priithon.plt.plot_objects.text_window-class.html#format_popup,Method Priithon.plt.wxplt.plot_canvas.format_popup()=Priithon.plt.wxplt.plot_canvas-class.html#format_popup"><a title="Priithon.plt.plot_objects.axis_window.format_popup
Priithon.plt.plot_objects.text_window.format_popup
Priithon.plt.wxplt.plot_canvas.format_popup" class="py-name" href="#" onclick="return doclink('link-63', 'format_popup', 'link-63');">format_popup</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt> </tt>
<a name="L218"></a><tt class="py-lineno"> 218</tt>  <tt class="py-line">                <tt class="py-keyword">break</tt> </tt>
<a name="L219"></a><tt class="py-lineno"> 219</tt>  <tt class="py-line">                <tt class="py-name">menu_found</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L220"></a><tt class="py-lineno"> 220</tt>  <tt class="py-line">            <tt id="link-64" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-64', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name" targets="Method Priithon.plt.plot_objects.text_object.clear_dc()=Priithon.plt.plot_objects.text_object-class.html#clear_dc"><a title="Priithon.plt.plot_objects.text_object.clear_dc" class="py-name" href="#" onclick="return doclink('link-65', 'clear_dc', 'link-65');">clear_dc</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno"> 221</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">menu_found</tt><tt class="py-op">:</tt> </tt>
<a name="L222"></a><tt class="py-lineno"> 222</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.contains
Priithon.plt.plot_utility.box_object.contains" class="py-name" href="#" onclick="return doclink('link-66', 'contains', 'link-61');">contains</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L223"></a><tt class="py-lineno"> 223</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="Priithon.plt.plot_objects.axis_window.format_popup
Priithon.plt.plot_objects.text_window.format_popup
Priithon.plt.wxplt.plot_canvas.format_popup" class="py-name" href="#" onclick="return doclink('link-67', 'format_popup', 'link-63');">format_popup</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt> </tt>
<a name="L224"></a><tt class="py-lineno"> 224</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.contains
Priithon.plt.plot_utility.box_object.contains" class="py-name" href="#" onclick="return doclink('link-68', 'contains', 'link-61');">contains</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L225"></a><tt class="py-lineno"> 225</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name"><a title="Priithon.plt.plot_objects.axis_window.format_popup
Priithon.plt.plot_objects.text_window.format_popup
Priithon.plt.wxplt.plot_canvas.format_popup" class="py-name" href="#" onclick="return doclink('link-69', 'format_popup', 'link-63');">format_popup</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt> </tt>
<a name="L226"></a><tt class="py-lineno"> 226</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L227"></a><tt class="py-lineno"> 227</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="Priithon.plt.plot_objects.axis_window.format_popup
Priithon.plt.plot_objects.text_window.format_popup
Priithon.plt.wxplt.plot_canvas.format_popup" class="py-name" href="#" onclick="return doclink('link-70', 'format_popup', 'link-63');">format_popup</a></tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt> </tt>
</div><a name="L228"></a><tt class="py-lineno"> 228</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.format_popup"></a><div id="plot_canvas.format_popup-def"><a name="L229"></a><tt class="py-lineno"> 229</tt> <a class="py-toggle" href="#" id="plot_canvas.format_popup-toggle" onclick="return toggle('plot_canvas.format_popup');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#format_popup">format_popup</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">pos</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.format_popup-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.format_popup-expanded"><a name="L230"></a><tt class="py-lineno"> 230</tt>  <tt class="py-line">        <tt class="py-name">menu</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Menu</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L231"></a><tt class="py-lineno"> 231</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">501</tt><tt class="py-op">,</tt> <tt class="py-string">'previous zoom'</tt><tt class="py-op">,</tt> <tt class="py-string">'previous zoom'</tt><tt class="py-op">)</tt> </tt>
<a name="L232"></a><tt class="py-lineno"> 232</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Enable</tt><tt class="py-op">(</tt><tt class="py-number">501</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt><tt class="py-op">&gt;</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L233"></a><tt class="py-lineno"> 233</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">500</tt><tt class="py-op">,</tt> <tt class="py-string">'Auto Zoom'</tt><tt class="py-op">,</tt> <tt class="py-string">'Auto Zoom'</tt><tt class="py-op">)</tt> </tt>
<a name="L234"></a><tt class="py-lineno"> 234</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">502</tt><tt class="py-op">,</tt> <tt class="py-string">'next zoom'</tt><tt class="py-op">,</tt> <tt class="py-string">'next zoom'</tt><tt class="py-op">)</tt> </tt>
<a name="L235"></a><tt class="py-lineno"> 235</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Enable</tt><tt class="py-op">(</tt><tt class="py-number">502</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt><tt class="py-op">&lt;</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L236"></a><tt class="py-lineno"> 236</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">503</tt><tt class="py-op">,</tt> <tt class="py-string">'clear zoom history'</tt><tt class="py-op">,</tt> <tt class="py-string">'clear zoom history'</tt><tt class="py-op">)</tt> </tt>
<a name="L237"></a><tt class="py-lineno"> 237</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Enable</tt><tt class="py-op">(</tt><tt class="py-number">503</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">)</tt><tt class="py-op">&gt;</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L238"></a><tt class="py-lineno"> 238</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">504</tt><tt class="py-op">,</tt> <tt class="py-string">'X-Y equal aspect ratio'</tt><tt class="py-op">,</tt> <tt class="py-string">'X-Y equal - set aspect ratio to 1'</tt><tt class="py-op">)</tt> </tt>
<a name="L239"></a><tt class="py-lineno"> 239</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">505</tt><tt class="py-op">,</tt> <tt class="py-string">'X-Y any aspect ratio'</tt><tt class="py-op">,</tt> <tt class="py-string">'X-Y equal - set aspect ratio to "normal"'</tt><tt class="py-op">)</tt> </tt>
<a name="L240"></a><tt class="py-lineno"> 240</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">506</tt><tt class="py-op">,</tt> <tt class="py-string">'make X-Y axes a tight fit'</tt><tt class="py-op">,</tt> <tt class="py-string">'fit X-Y axes to a fraction of the grid spacing"'</tt><tt class="py-op">)</tt> </tt>
<a name="L241"></a><tt class="py-lineno"> 241</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">507</tt><tt class="py-op">,</tt> <tt class="py-string">'freeze X-Y axes bounds'</tt><tt class="py-op">,</tt> <tt class="py-string">'freeze X-Y axes grid"'</tt><tt class="py-op">)</tt> </tt>
<a name="L242"></a><tt class="py-lineno"> 242</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">508</tt><tt class="py-op">,</tt> <tt class="py-string">'change canvas background color'</tt><tt class="py-op">,</tt> <tt class="py-string">'open dialog to choose new color framing graph"'</tt><tt class="py-op">)</tt> </tt>
<a name="L243"></a><tt class="py-lineno"> 243</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">AppendCheckItem</tt><tt class="py-op">(</tt><tt class="py-number">509</tt><tt class="py-op">,</tt> <tt class="py-string">'hold plot'</tt><tt class="py-op">,</tt> <tt class="py-string">"don't clear before next plot"</tt><tt class="py-op">)</tt> </tt>
<a name="L244"></a><tt class="py-lineno"> 244</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">510</tt><tt class="py-op">,</tt> <tt class="py-string">'inspect data points'</tt><tt class="py-op">,</tt> <tt class="py-string">'open data point inspect GUI -- Y.vPlotInspectDatapointGUI()'</tt><tt class="py-op">)</tt> </tt>
<a name="L245"></a><tt class="py-lineno"> 245</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">511</tt><tt class="py-op">,</tt> <tt class="py-string">'use plot as z-slider'</tt><tt class="py-op">,</tt> <tt class="py-string">'Open GUI to make a plot figure function as z slider for a viewer -- Y.vPlotAsSliderGUI()'</tt><tt class="py-op">)</tt> </tt>
<a name="L246"></a><tt class="py-lineno"> 246</tt>  <tt class="py-line"> </tt>
<a name="L247"></a><tt class="py-lineno"> 247</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">501</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_prev_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#on_prev_zoom"><a title="Priithon.plt.wxplt.plot_canvas.on_prev_zoom" class="py-name" href="#" onclick="return doclink('link-71', 'on_prev_zoom', 'link-71');">on_prev_zoom</a></tt><tt class="py-op">)</tt> </tt>
<a name="L248"></a><tt class="py-lineno"> 248</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">502</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_next_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#on_next_zoom"><a title="Priithon.plt.wxplt.plot_canvas.on_next_zoom" class="py-name" href="#" onclick="return doclink('link-72', 'on_next_zoom', 'link-72');">on_next_zoom</a></tt><tt class="py-op">)</tt> </tt>
<a name="L249"></a><tt class="py-lineno"> 249</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">503</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.on_zoom_forget" class="py-name" href="#" onclick="return doclink('link-73', 'on_zoom_forget', 'link-29');">on_zoom_forget</a></tt><tt class="py-op">)</tt> </tt>
<a name="L250"></a><tt class="py-lineno"> 250</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">500</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_auto_zoom()=Priithon.plt.wxplt.plot_canvas-class.html#on_auto_zoom"><a title="Priithon.plt.wxplt.plot_canvas.on_auto_zoom" class="py-name" href="#" onclick="return doclink('link-74', 'on_auto_zoom', 'link-74');">on_auto_zoom</a></tt><tt class="py-op">)</tt> </tt>
<a name="L251"></a><tt class="py-lineno"> 251</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">504</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_equal_aspect_ratio()=Priithon.plt.wxplt.plot_canvas-class.html#on_equal_aspect_ratio"><a title="Priithon.plt.wxplt.plot_canvas.on_equal_aspect_ratio" class="py-name" href="#" onclick="return doclink('link-75', 'on_equal_aspect_ratio', 'link-75');">on_equal_aspect_ratio</a></tt><tt class="py-op">)</tt> </tt>
<a name="L252"></a><tt class="py-lineno"> 252</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">505</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_any_aspect_ratio()=Priithon.plt.wxplt.plot_canvas-class.html#on_any_aspect_ratio"><a title="Priithon.plt.wxplt.plot_canvas.on_any_aspect_ratio" class="py-name" href="#" onclick="return doclink('link-76', 'on_any_aspect_ratio', 'link-76');">on_any_aspect_ratio</a></tt><tt class="py-op">)</tt> </tt>
<a name="L253"></a><tt class="py-lineno"> 253</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">506</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_axis_tight()=Priithon.plt.wxplt.plot_canvas-class.html#on_axis_tight"><a title="Priithon.plt.wxplt.plot_canvas.on_axis_tight" class="py-name" href="#" onclick="return doclink('link-77', 'on_axis_tight', 'link-77');">on_axis_tight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L254"></a><tt class="py-lineno"> 254</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">507</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_axis_freeze()=Priithon.plt.wxplt.plot_canvas-class.html#on_axis_freeze"><a title="Priithon.plt.wxplt.plot_canvas.on_axis_freeze" class="py-name" href="#" onclick="return doclink('link-78', 'on_axis_freeze', 'link-78');">on_axis_freeze</a></tt><tt class="py-op">)</tt> </tt>
<a name="L255"></a><tt class="py-lineno"> 255</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">508</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_bkg_color()=Priithon.plt.wxplt.plot_canvas-class.html#on_bkg_color"><a title="Priithon.plt.wxplt.plot_canvas.on_bkg_color" class="py-name" href="#" onclick="return doclink('link-79', 'on_bkg_color', 'link-79');">on_bkg_color</a></tt><tt class="py-op">)</tt> </tt>
<a name="L256"></a><tt class="py-lineno"> 256</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">509</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_hold()=Priithon.plt.wxplt.plot_canvas-class.html#on_hold"><a title="Priithon.plt.wxplt.plot_canvas.on_hold" class="py-name" href="#" onclick="return doclink('link-80', 'on_hold', 'link-80');">on_hold</a></tt><tt class="py-op">)</tt> </tt>
<a name="L257"></a><tt class="py-lineno"> 257</tt>  <tt class="py-line">        <tt class="py-comment"># CHECK if GetParent() is ok here ?!</tt> </tt>
<a name="L258"></a><tt class="py-lineno"> 258</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Check</tt><tt class="py-op">(</tt><tt class="py-number">509</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetParent</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name"><a title="Priithon.plt.interface.hold" class="py-name" href="#" onclick="return doclink('link-81', 'hold', 'link-49');">hold</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L259"></a><tt class="py-lineno"> 259</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">510</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_inspectGUI()=Priithon.plt.wxplt.plot_canvas-class.html#on_inspectGUI"><a title="Priithon.plt.wxplt.plot_canvas.on_inspectGUI" class="py-name" href="#" onclick="return doclink('link-82', 'on_inspectGUI', 'link-82');">on_inspectGUI</a></tt><tt class="py-op">)</tt> </tt>
<a name="L260"></a><tt class="py-lineno"> 260</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">511</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.on_vPlotslider()=Priithon.plt.wxplt.plot_canvas-class.html#on_vPlotslider"><a title="Priithon.plt.wxplt.plot_canvas.on_vPlotslider" class="py-name" href="#" onclick="return doclink('link-83', 'on_vPlotslider', 'link-83');">on_vPlotslider</a></tt><tt class="py-op">)</tt> </tt>
<a name="L261"></a><tt class="py-lineno"> 261</tt>  <tt class="py-line"> </tt>
<a name="L262"></a><tt class="py-lineno"> 262</tt>  <tt class="py-line">        <tt class="py-comment">#20090603 (called by default) menu.UpdateUI()</tt> </tt>
<a name="L263"></a><tt class="py-lineno"> 263</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">PopupMenuXY</tt><tt class="py-op">(</tt><tt class="py-name">menu</tt><tt class="py-op">)</tt> <tt class="py-comment">#20090603 (default mouse cursor pos) ,pos[0],pos[1])        </tt> </tt>
</div><a name="L264"></a><tt class="py-lineno"> 264</tt>  <tt class="py-line">    <tt class="py-comment"># workers</tt> </tt>
<a name="L265"></a><tt class="py-lineno"> 265</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="plot_canvas.rubberband"></a><div id="plot_canvas.rubberband-def"><a name="L266"></a><tt class="py-lineno"> 266</tt> <a class="py-toggle" href="#" id="plot_canvas.rubberband-toggle" onclick="return toggle('plot_canvas.rubberband');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#rubberband">rubberband</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">new</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.rubberband-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.rubberband-expanded"><a name="L267"></a><tt class="py-lineno"> 267</tt>  <tt class="py-line">        <tt class="py-docstring">"""Delete previous selection band and paint new one."""</tt> </tt>
<a name="L268"></a><tt class="py-lineno"> 268</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection</tt><tt class="py-op">:</tt> </tt>
<a name="L269"></a><tt class="py-lineno"> 269</tt>  <tt class="py-line">            <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L270"></a><tt class="py-lineno"> 270</tt>  <tt class="py-line">            <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetLogicalFunction</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">XOR</tt><tt class="py-op">)</tt> </tt>
<a name="L271"></a><tt class="py-lineno"> 271</tt>  <tt class="py-line">            <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetPen</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GREY_PEN</tt><tt class="py-op">)</tt> </tt>
<a name="L272"></a><tt class="py-lineno"> 272</tt>  <tt class="py-line">            <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBrush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">TRANSPARENT_BRUSH</tt><tt class="py-op">)</tt> </tt>
<a name="L273"></a><tt class="py-lineno"> 273</tt>  <tt class="py-line">            <tt class="py-name">diff</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> </tt>
<a name="L274"></a><tt class="py-lineno"> 274</tt>  <tt class="py-line">            <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DrawRectangle</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Variable Priithon.viewer.x=Priithon.viewer-module.html#x,Variable Priithon.viewer2.x=Priithon.viewer2-module.html#x,Variable Priithon.viewerCommon.x=Priithon.viewerCommon-module.html#x"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-84', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> </tt>
<a name="L275"></a><tt class="py-lineno"> 275</tt>  <tt class="py-line">                             <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-85', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L276"></a><tt class="py-lineno"> 276</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">=</tt> <tt id="link-86" class="py-name" targets="Method Priithon.py.buffer.Buffer.new()=Priithon.py.buffer.Buffer-class.html#new"><a title="Priithon.py.buffer.Buffer.new" class="py-name" href="#" onclick="return doclink('link-86', 'new', 'link-86');">new</a></tt> </tt>
<a name="L277"></a><tt class="py-lineno"> 277</tt>  <tt class="py-line">            <tt class="py-name">diff</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> </tt>
<a name="L278"></a><tt class="py-lineno"> 278</tt>  <tt class="py-line">            <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DrawRectangle</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-87', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> </tt>
<a name="L279"></a><tt class="py-lineno"> 279</tt>  <tt class="py-line">                             <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-88', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
</div><a name="L280"></a><tt class="py-lineno"> 280</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.save"></a><div id="plot_canvas.save-def"><a name="L281"></a><tt class="py-lineno"> 281</tt> <a class="py-toggle" href="#" id="plot_canvas.save-toggle" onclick="return toggle('plot_canvas.save');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">path</tt><tt class="py-op">,</tt><tt class="py-param">image_type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.save-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.save-expanded"><a name="L282"></a><tt class="py-lineno"> 282</tt>  <tt class="py-line">        <tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">h</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L283"></a><tt class="py-lineno"> 283</tt>  <tt class="py-line">        <tt class="py-name">bitmap</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EmptyBitmap</tt><tt class="py-op">(</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">h</tt><tt class="py-op">)</tt> </tt>
<a name="L284"></a><tt class="py-lineno"> 284</tt>  <tt class="py-line">        <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MemoryDC</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L285"></a><tt class="py-lineno"> 285</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SelectObject</tt><tt class="py-op">(</tt><tt class="py-name">bitmap</tt><tt class="py-op">)</tt> </tt>
<a name="L286"></a><tt class="py-lineno"> 286</tt>  <tt class="py-line">        <tt class="py-comment">#self.update()</tt> </tt>
<a name="L287"></a><tt class="py-lineno"> 287</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># The background isn't drawn right without this cluge.   </tt> </tt>
<a name="L288"></a><tt class="py-lineno"> 288</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#fill_color = get_color(self.background_color)</tt> </tt>
<a name="L289"></a><tt class="py-lineno"> 289</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">fill_color</tt> <tt class="py-op">=</tt> <tt id="link-89" class="py-name" targets="Function Priithon.plt.plot_objects.get_color()=Priithon.plt.plot_objects-module.html#get_color"><a title="Priithon.plt.plot_objects.get_color" class="py-name" href="#" onclick="return doclink('link-89', 'get_color', 'link-89');">get_color</a></tt><tt class="py-op">(</tt><tt class="py-string">'white'</tt><tt class="py-op">)</tt>         </tt>
<a name="L290"></a><tt class="py-lineno"> 290</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetPen</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Pen</tt><tt class="py-op">(</tt><tt class="py-name">fill_color</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L291"></a><tt class="py-lineno"> 291</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBrush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Brush</tt><tt class="py-op">(</tt><tt class="py-name">fill_color</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-comment">#how to handle transparency???</tt> </tt>
<a name="L292"></a><tt class="py-lineno"> 292</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DrawRectangle</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">h</tt><tt class="py-op">)</tt> </tt>
<a name="L293"></a><tt class="py-lineno"> 293</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetPen</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NullPen</tt><tt class="py-op">)</tt> </tt>
<a name="L294"></a><tt class="py-lineno"> 294</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBrush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NullBrush</tt><tt class="py-op">)</tt> </tt>
<a name="L295"></a><tt class="py-lineno"> 295</tt>  <tt class="py-line">        <tt class="py-comment"># end cluge</tt> </tt>
<a name="L296"></a><tt class="py-lineno"> 296</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-90', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L297"></a><tt class="py-lineno"> 297</tt>  <tt class="py-line">        <tt id="link-91" class="py-name" targets="Function Priithon.plt.interface.image()=Priithon.plt.interface-module.html#image"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-91', 'image', 'link-91');">image</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ImageFromBitmap</tt><tt class="py-op">(</tt><tt class="py-name">bitmap</tt><tt class="py-op">)</tt> </tt>
<a name="L298"></a><tt class="py-lineno"> 298</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">InitAllImageHandlers</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L299"></a><tt class="py-lineno"> 299</tt>  <tt class="py-line">        <tt id="link-92" class="py-name"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-92', 'image', 'link-91');">image</a></tt><tt class="py-op">.</tt><tt id="link-93" class="py-name" targets="Method Priithon.wxPyPlot.PlotCanvas.SaveFile()=Priithon.wxPyPlot.PlotCanvas-class.html#SaveFile"><a title="Priithon.wxPyPlot.PlotCanvas.SaveFile" class="py-name" href="#" onclick="return doclink('link-93', 'SaveFile', 'link-93');">SaveFile</a></tt><tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">,</tt><tt id="link-94" class="py-name" targets="Variable Priithon.plt.plot_objects.image_type_map=Priithon.plt.plot_objects-module.html#image_type_map"><a title="Priithon.plt.plot_objects.image_type_map" class="py-name" href="#" onclick="return doclink('link-94', 'image_type_map', 'link-94');">image_type_map</a></tt><tt class="py-op">[</tt><tt class="py-name">image_type</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L300"></a><tt class="py-lineno"> 300</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.save_csv"></a><div id="plot_canvas.save_csv-def"><a name="L301"></a><tt class="py-lineno"> 301</tt> <a class="py-toggle" href="#" id="plot_canvas.save_csv-toggle" onclick="return toggle('plot_canvas.save_csv');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#save_csv">save_csv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">,</tt> <tt class="py-param">transpose</tt><tt class="py-op">=</tt><tt id="link-95" class="py-name" targets="Variable Priithon.wxPyPlot.False=Priithon.wxPyPlot-module.html#False"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-95', 'False', 'link-95');">False</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.save_csv-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.save_csv-expanded"><a name="L302"></a><tt class="py-lineno"> 302</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L303"></a><tt class="py-lineno"> 303</tt>  <tt class="py-line"><tt class="py-docstring">        save all datasets into file</tt> </tt>
<a name="L304"></a><tt class="py-lineno"> 304</tt>  <tt class="py-line"><tt class="py-docstring">        as comma-separated-values (CSV)</tt> </tt>
<a name="L305"></a><tt class="py-lineno"> 305</tt>  <tt class="py-line"><tt class="py-docstring">        use `csv_sep` instead om "comma" (default '\t')</tt> </tt>
<a name="L306"></a><tt class="py-lineno"> 306</tt>  <tt class="py-line"><tt class="py-docstring">        if `transpose`: save each dataset into two (x,y) columns, rather than two rows</tt> </tt>
<a name="L307"></a><tt class="py-lineno"> 307</tt>  <tt class="py-line"><tt class="py-docstring">            (`transpose` = False might be faster)</tt> </tt>
<a name="L308"></a><tt class="py-lineno"> 308</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L309"></a><tt class="py-lineno"> 309</tt>  <tt class="py-line"><tt class="py-docstring">        `path` can also be an already open file-like object</tt> </tt>
<a name="L310"></a><tt class="py-lineno"> 310</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L311"></a><tt class="py-lineno"> 311</tt>  <tt class="py-line">        <tt class="py-comment">#from priithon.all import U</tt> </tt>
<a name="L312"></a><tt class="py-lineno"> 312</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#U.writeArray(vstack([</tt> </tt>
<a name="L313"></a><tt class="py-lineno"> 313</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#ll = self.client.line_list</tt> </tt>
<a name="L314"></a><tt class="py-lineno"> 314</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">dataset_arrays</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> <tt class="py-name">asanyarray</tt><tt class="py-op">(</tt><tt class="py-name">dataset</tt><tt class="py-op">.</tt><tt class="py-name">points</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">dataset</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">]</tt> </tt>
<a name="L315"></a><tt class="py-lineno"> 315</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">,</tt> <tt class="py-string">'write'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L316"></a><tt class="py-lineno"> 316</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">path</tt> </tt>
<a name="L317"></a><tt class="py-lineno"> 317</tt>  <tt class="py-line">            <tt class="py-name">fNeedsClose</tt> <tt class="py-op">=</tt> <tt id="link-96" class="py-name"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-96', 'False', 'link-95');">False</a></tt> </tt>
<a name="L318"></a><tt class="py-lineno"> 318</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L319"></a><tt class="py-lineno"> 319</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt id="link-97" class="py-name" targets="Function Priithon.Mrc.open()=Priithon.Mrc-module.html#open,Function Priithon.plt.dumb_shelve.open()=Priithon.plt.dumb_shelve-module.html#open,Function Priithon.plt.dumbdbm_patched.open()=Priithon.plt.dumbdbm_patched-module.html#open,Method Priithon.py.buffer.Buffer.open()=Priithon.py.buffer.Buffer-class.html#open"><a title="Priithon.Mrc.open
Priithon.plt.dumb_shelve.open
Priithon.plt.dumbdbm_patched.open
Priithon.py.buffer.Buffer.open" class="py-name" href="#" onclick="return doclink('link-97', 'open', 'link-97');">open</a></tt><tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">,</tt> <tt class="py-string">'w'</tt><tt class="py-op">)</tt> </tt>
<a name="L320"></a><tt class="py-lineno"> 320</tt>  <tt class="py-line">            <tt class="py-name">fNeedsClose</tt> <tt class="py-op">=</tt> <tt id="link-98" class="py-name" targets="Variable Priithon.wxPyPlot.True=Priithon.wxPyPlot-module.html#True"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-98', 'True', 'link-98');">True</a></tt> </tt>
<a name="L321"></a><tt class="py-lineno"> 321</tt>  <tt class="py-line"> </tt>
<a name="L322"></a><tt class="py-lineno"> 322</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-99" class="py-name" targets="Method Priithon.mockNDarray.mockNDarray.transpose()=Priithon.mockNDarray.mockNDarray-class.html#transpose"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-99', 'transpose', 'link-99');">transpose</a></tt><tt class="py-op">:</tt> </tt>
<a name="L323"></a><tt class="py-lineno"> 323</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">ps</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dataset_arrays</tt><tt class="py-op">:</tt> </tt>
<a name="L324"></a><tt class="py-lineno"> 324</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">x_y</tt> <tt class="py-keyword">in</tt> <tt class="py-name">ps</tt><tt class="py-op">.</tt><tt class="py-name">T</tt><tt class="py-op">:</tt> </tt>
<a name="L325"></a><tt class="py-lineno"> 325</tt>  <tt class="py-line">                    <tt class="py-comment">#for el in x_y:</tt> </tt>
<a name="L326"></a><tt class="py-lineno"> 326</tt>  <tt class="py-line"><tt class="py-comment"></tt>                    <tt class="py-comment">#   f.write(str(el) + csv_sep)</tt> </tt>
<a name="L327"></a><tt class="py-lineno"> 327</tt>  <tt class="py-line"><tt class="py-comment"></tt>                    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name" targets="Method Priithon.Scientific_IO_TextFile.TextFile.write()=Priithon.Scientific_IO_TextFile.TextFile-class.html#write,Method Priithon.py.document.Document.write()=Priithon.py.document.Document-class.html#write,Method Priithon.py.editwindow.EditWindow.write()=Priithon.py.editwindow.EditWindow-class.html#write,Method Priithon.py.pseudo.PseudoFile.write()=Priithon.py.pseudo.PseudoFile-class.html#write,Method Priithon.py.shell.Shell.write()=Priithon.py.shell.Shell-class.html#write"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-100', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">csv_sep</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt class="py-name">x_y</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L328"></a><tt class="py-lineno"> 328</tt>  <tt class="py-line">                    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-101', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L329"></a><tt class="py-lineno"> 329</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L330"></a><tt class="py-lineno"> 330</tt>  <tt class="py-line">            <tt class="py-name">dataset_lens</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">ps</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">ps</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dataset_arrays</tt><tt class="py-op">]</tt> </tt>
<a name="L331"></a><tt class="py-lineno"> 331</tt>  <tt class="py-line">            <tt class="py-name">iMax</tt> <tt class="py-op">=</tt> <tt id="link-102" class="py-name" targets="Function Priithon.useful.max()=Priithon.useful-module.html#max"><a title="Priithon.useful.max" class="py-name" href="#" onclick="return doclink('link-102', 'max', 'link-102');">max</a></tt><tt class="py-op">(</tt><tt class="py-name">dataset_lens</tt><tt class="py-op">)</tt> </tt>
<a name="L332"></a><tt class="py-lineno"> 332</tt>  <tt class="py-line">            <tt class="py-name">jMax</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">dataset_arrays</tt><tt class="py-op">)</tt> </tt>
<a name="L333"></a><tt class="py-lineno"> 333</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-103" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-103', 'i', 'link-3');">i</a></tt> <tt class="py-keyword">in</tt> <tt id="link-104" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-104', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">iMax</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># lines</tt> </tt>
<a name="L334"></a><tt class="py-lineno"> 334</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">j</tt> <tt class="py-keyword">in</tt> <tt id="link-105" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-105', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">jMax</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  <tt class="py-comment"># rows</tt> </tt>
<a name="L335"></a><tt class="py-lineno"> 335</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt id="link-106" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-106', 'i', 'link-3');">i</a></tt><tt class="py-op">&lt;</tt><tt class="py-name">dataset_lens</tt><tt class="py-op">[</tt><tt class="py-name">j</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L336"></a><tt class="py-lineno"> 336</tt>  <tt class="py-line">                        <tt class="py-name">x_y</tt> <tt class="py-op">=</tt> <tt class="py-name">dataset_arrays</tt><tt class="py-op">[</tt><tt class="py-name">j</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt id="link-107" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-107', 'i', 'link-3');">i</a></tt><tt class="py-op">]</tt> </tt>
<a name="L337"></a><tt class="py-lineno"> 337</tt>  <tt class="py-line">                        <tt class="py-comment">#for el in x_y:</tt> </tt>
<a name="L338"></a><tt class="py-lineno"> 338</tt>  <tt class="py-line"><tt class="py-comment"></tt>                        <tt class="py-comment">#    f.write(str(el) + csv_sep)</tt> </tt>
<a name="L339"></a><tt class="py-lineno"> 339</tt>  <tt class="py-line"><tt class="py-comment"></tt>                        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-108" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-108', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">csv_sep</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt class="py-name">x_y</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L340"></a><tt class="py-lineno"> 340</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L341"></a><tt class="py-lineno"> 341</tt>  <tt class="py-line">                        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-109', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L342"></a><tt class="py-lineno"> 342</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt>  <tt class="py-name">j</tt><tt class="py-op">&lt;</tt><tt class="py-name">jMax</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L343"></a><tt class="py-lineno"> 343</tt>  <tt class="py-line">                        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-110', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L344"></a><tt class="py-lineno"> 344</tt>  <tt class="py-line">                <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-111', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L345"></a><tt class="py-lineno"> 345</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">fNeedsClose</tt><tt class="py-op">:</tt> </tt>
<a name="L346"></a><tt class="py-lineno"> 346</tt>  <tt class="py-line">            <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name" targets="Method Priithon.Mrc.Mrc.close()=Priithon.Mrc.Mrc-class.html#close,Method Priithon.Mrc.Mrc2.close()=Priithon.Mrc.Mrc2-class.html#close,Method Priithon.Scientific_IO_TextFile.TextFile.close()=Priithon.Scientific_IO_TextFile.TextFile-class.html#close,Method Priithon.plt.dumbdbm_patched._Database.close()=Priithon.plt.dumbdbm_patched._Database-class.html#close,Function Priithon.plt.interface.close()=Priithon.plt.interface-module.html#close,Method Priithon.readerSPE.File.close()=Priithon.readerSPE.File-class.html#close"><a title="Priithon.Mrc.Mrc.close
Priithon.Mrc.Mrc2.close
Priithon.Scientific_IO_TextFile.TextFile.close
Priithon.plt.dumbdbm_patched._Database.close
Priithon.plt.interface.close
Priithon.readerSPE.File.close" class="py-name" href="#" onclick="return doclink('link-112', 'close', 'link-112');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L347"></a><tt class="py-lineno"> 347</tt>  <tt class="py-line">         </tt>
<a name="L348"></a><tt class="py-lineno"> 348</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.save_csv_singleXcolumn"></a><div id="plot_canvas.save_csv_singleXcolumn-def"><a name="L349"></a><tt class="py-lineno"> 349</tt> <a class="py-toggle" href="#" id="plot_canvas.save_csv_singleXcolumn-toggle" onclick="return toggle('plot_canvas.save_csv_singleXcolumn');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#save_csv_singleXcolumn">save_csv_singleXcolumn</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.save_csv_singleXcolumn-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.save_csv_singleXcolumn-expanded"><a name="L350"></a><tt class="py-lineno"> 350</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L351"></a><tt class="py-lineno"> 351</tt>  <tt class="py-line"><tt class="py-docstring">        save all datasets into file</tt> </tt>
<a name="L352"></a><tt class="py-lineno"> 352</tt>  <tt class="py-line"><tt class="py-docstring">        as comma-separated-values (CSV)</tt> </tt>
<a name="L353"></a><tt class="py-lineno"> 353</tt>  <tt class="py-line"><tt class="py-docstring">        use `csv_sep` instead om "comma" (default '\t')</tt> </tt>
<a name="L354"></a><tt class="py-lineno"> 354</tt>  <tt class="py-line"><tt class="py-docstring">        all y,x pairs across all datasets are compacted to share one x-column</tt> </tt>
<a name="L355"></a><tt class="py-lineno"> 355</tt>  <tt class="py-line"><tt class="py-docstring">             missing values are left empty</tt> </tt>
<a name="L356"></a><tt class="py-lineno"> 356</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L357"></a><tt class="py-lineno"> 357</tt>  <tt class="py-line"><tt class="py-docstring">        `path` can also be an already open file-like object</tt> </tt>
<a name="L358"></a><tt class="py-lineno"> 358</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L359"></a><tt class="py-lineno"> 359</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">,</tt> <tt class="py-string">'write'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L360"></a><tt class="py-lineno"> 360</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">path</tt> </tt>
<a name="L361"></a><tt class="py-lineno"> 361</tt>  <tt class="py-line">            <tt class="py-name">fNeedsClose</tt> <tt class="py-op">=</tt> <tt id="link-113" class="py-name"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-113', 'False', 'link-95');">False</a></tt> </tt>
<a name="L362"></a><tt class="py-lineno"> 362</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L363"></a><tt class="py-lineno"> 363</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt id="link-114" class="py-name"><a title="Priithon.Mrc.open
Priithon.plt.dumb_shelve.open
Priithon.plt.dumbdbm_patched.open
Priithon.py.buffer.Buffer.open" class="py-name" href="#" onclick="return doclink('link-114', 'open', 'link-97');">open</a></tt><tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">,</tt> <tt class="py-string">'w'</tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno"> 364</tt>  <tt class="py-line">            <tt class="py-name">fNeedsClose</tt> <tt class="py-op">=</tt> <tt id="link-115" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-115', 'True', 'link-98');">True</a></tt> </tt>
<a name="L365"></a><tt class="py-lineno"> 365</tt>  <tt class="py-line"> </tt>
<a name="L366"></a><tt class="py-lineno"> 366</tt>  <tt class="py-line">        <tt class="py-name">xs</tt> <tt class="py-op">=</tt> <tt class="py-name">set</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L367"></a><tt class="py-lineno"> 367</tt>  <tt class="py-line">        <tt class="py-name">yys</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L368"></a><tt class="py-lineno"> 368</tt>  <tt class="py-line"> </tt>
<a name="L369"></a><tt class="py-lineno"> 369</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">dataset</tt>  <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">:</tt> </tt>
<a name="L370"></a><tt class="py-lineno"> 370</tt>  <tt class="py-line">            <tt class="py-name">ys</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L371"></a><tt class="py-lineno"> 371</tt>  <tt class="py-line">            <tt class="py-name">yys</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-name">ys</tt> <tt class="py-op">)</tt> </tt>
<a name="L372"></a><tt class="py-lineno"> 372</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-116" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-116', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dataset</tt><tt class="py-op">.</tt><tt class="py-name">points</tt><tt class="py-op">:</tt> </tt>
<a name="L373"></a><tt class="py-lineno"> 373</tt>  <tt class="py-line">                <tt class="py-name">xs</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name" targets="Variable Priithon.mandel.add=Priithon.mandel-module.html#add,Variable Priithon.plt.add=Priithon.plt-module.html#add,Variable Priithon.plt.interface.add=Priithon.plt.interface-module.html#add,Variable Priithon.plt.plot_objects.add=Priithon.plt.plot_objects-module.html#add,Variable Priithon.plt.plot_utility.add=Priithon.plt.plot_utility-module.html#add,Variable Priithon.plt.wxplt.add=Priithon.plt.wxplt-module.html#add"><a title="Priithon.mandel.add
Priithon.plt.add
Priithon.plt.interface.add
Priithon.plt.plot_objects.add
Priithon.plt.plot_utility.add
Priithon.plt.wxplt.add" class="py-name" href="#" onclick="return doclink('link-117', 'add', 'link-117');">add</a></tt><tt class="py-op">(</tt><tt id="link-118" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-118', 'x', 'link-84');">x</a></tt><tt class="py-op">)</tt> </tt>
<a name="L374"></a><tt class="py-lineno"> 374</tt>  <tt class="py-line">                <tt class="py-name">ys</tt><tt class="py-op">[</tt> <tt id="link-119" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-119', 'x', 'link-84');">x</a></tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">y</tt> </tt>
<a name="L375"></a><tt class="py-lineno"> 375</tt>  <tt class="py-line">     </tt>
<a name="L376"></a><tt class="py-lineno"> 376</tt>  <tt class="py-line">        <tt class="py-name">nYYS</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">yys</tt><tt class="py-op">)</tt> </tt>
<a name="L377"></a><tt class="py-lineno"> 377</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-120" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-120', 'x', 'link-84');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">sorted</tt><tt class="py-op">(</tt><tt class="py-name">xs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L378"></a><tt class="py-lineno"> 378</tt>  <tt class="py-line">            <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-121', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-122" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-122', 'x', 'link-84');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L379"></a><tt class="py-lineno"> 379</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">iy</tt><tt class="py-op">,</tt><tt class="py-name">ys</tt> <tt class="py-keyword">in</tt> <tt class="py-name">enumerate</tt><tt class="py-op">(</tt><tt class="py-name">yys</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L380"></a><tt class="py-lineno"> 380</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L381"></a><tt class="py-lineno"> 381</tt>  <tt class="py-line">                    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-123', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">ys</tt><tt class="py-op">[</tt><tt id="link-124" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-124', 'x', 'link-84');">x</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L382"></a><tt class="py-lineno"> 382</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> </tt>
<a name="L383"></a><tt class="py-lineno"> 383</tt>  <tt class="py-line">                    <tt class="py-keyword">pass</tt> </tt>
<a name="L384"></a><tt class="py-lineno"> 384</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">iy</tt><tt class="py-op">&lt;</tt><tt class="py-name">nYYS</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L385"></a><tt class="py-lineno"> 385</tt>  <tt class="py-line">                    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-125', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L386"></a><tt class="py-lineno"> 386</tt>  <tt class="py-line">            <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="Priithon.Scientific_IO_TextFile.TextFile.write
Priithon.py.document.Document.write
Priithon.py.editwindow.EditWindow.write
Priithon.py.pseudo.PseudoFile.write
Priithon.py.shell.Shell.write" class="py-name" href="#" onclick="return doclink('link-126', 'write', 'link-100');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L387"></a><tt class="py-lineno"> 387</tt>  <tt class="py-line"> </tt>
<a name="L388"></a><tt class="py-lineno"> 388</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">fNeedsClose</tt><tt class="py-op">:</tt> </tt>
<a name="L389"></a><tt class="py-lineno"> 389</tt>  <tt class="py-line">            <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="Priithon.Mrc.Mrc.close
Priithon.Mrc.Mrc2.close
Priithon.Scientific_IO_TextFile.TextFile.close
Priithon.plt.dumbdbm_patched._Database.close
Priithon.plt.interface.close
Priithon.readerSPE.File.close" class="py-name" href="#" onclick="return doclink('link-127', 'close', 'link-112');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L390"></a><tt class="py-lineno"> 390</tt>  <tt class="py-line"> </tt>
<a name="L391"></a><tt class="py-lineno"> 391</tt>  <tt class="py-line"> </tt>
<a name="L392"></a><tt class="py-lineno"> 392</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.layout_all"></a><div id="plot_canvas.layout_all-def"><a name="L393"></a><tt class="py-lineno"> 393</tt> <a class="py-toggle" href="#" id="plot_canvas.layout_all-toggle" onclick="return toggle('plot_canvas.layout_all');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#layout_all">layout_all</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">dc</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.layout_all-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.layout_all-expanded"><a name="L394"></a><tt class="py-lineno"> 394</tt>  <tt class="py-line">        <tt class="py-comment">#settingbackgroundcolors</tt> </tt>
<a name="L395"></a><tt class="py-lineno"> 395</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#background = wx.NamedColour(self.background_color)</tt> </tt>
<a name="L396"></a><tt class="py-lineno"> 396</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#if self.GetBackgroundColour() != background:</tt> </tt>
<a name="L397"></a><tt class="py-lineno"> 397</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   self.SetBackgroundColour(background) </tt> </tt>
<a name="L398"></a><tt class="py-lineno"> 398</tt>  <tt class="py-line"><tt class="py-comment"></tt>           <tt class="py-comment">#self.Clear()</tt> </tt>
<a name="L399"></a><tt class="py-lineno"> 399</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   print 'refreshing'  </tt> </tt>
<a name="L400"></a><tt class="py-lineno"> 400</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">dc</tt><tt class="py-op">:</tt> <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt>             </tt>
<a name="L401"></a><tt class="py-lineno"> 401</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetClientSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-comment">#seb An array doesn't make sense as a truth value: array(self.GetClientSizeTuple())</tt> </tt>
<a name="L402"></a><tt class="py-lineno"> 402</tt>  <tt class="py-line">        <tt class="py-comment"># set the device context for all titles so they can</tt> </tt>
<a name="L403"></a><tt class="py-lineno"> 403</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># calculate their size</tt> </tt>
<a name="L404"></a><tt class="py-lineno"> 404</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">for</tt> <tt class="py-name">text_obj</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">all_titles</tt><tt class="py-op">:</tt> </tt>
<a name="L405"></a><tt class="py-lineno"> 405</tt>  <tt class="py-line">            <tt class="py-name">text_obj</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="Priithon.plt.plot_objects.text_object.set_dc" class="py-name" href="#" onclick="return doclink('link-128', 'set_dc', 'link-59');">set_dc</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L406"></a><tt class="py-lineno"> 406</tt>  <tt class="py-line">             </tt>
<a name="L407"></a><tt class="py-lineno"> 407</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt> <tt class="py-op">=</tt> <tt id="link-129" class="py-name" targets="Class Priithon.plt.plot_utility.box_object=Priithon.plt.plot_utility.box_object-class.html"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-129', 'box_object', 'link-129');">box_object</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt><tt class="py-op">)</tt> </tt>
<a name="L408"></a><tt class="py-lineno"> 408</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.inflate()=Priithon.plt.plot_utility.box_object-class.html#inflate"><a title="Priithon.plt.plot_utility.box_object.inflate" class="py-name" href="#" onclick="return doclink('link-130', 'inflate', 'link-130');">inflate</a></tt><tt class="py-op">(</tt><tt class="py-number">.95</tt><tt class="py-op">)</tt> <tt class="py-comment"># shrink box slightly</tt> </tt>
<a name="L409"></a><tt class="py-lineno"> 409</tt>  <tt class="py-line">         </tt>
<a name="L410"></a><tt class="py-lineno"> 410</tt>  <tt class="py-line">        <tt class="py-comment"># shrink graph area to make room for titles</tt> </tt>
<a name="L411"></a><tt class="py-lineno"> 411</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">graph_area</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.layout_border_text()=Priithon.plt.wxplt.plot_canvas-class.html#layout_border_text"><a title="Priithon.plt.wxplt.plot_canvas.layout_border_text" class="py-name" href="#" onclick="return doclink('link-131', 'layout_border_text', 'link-131');">layout_border_text</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">)</tt>         </tt>
<a name="L412"></a><tt class="py-lineno"> 412</tt>  <tt class="py-line">        <tt class="py-comment"># layout axis and graph data</tt> </tt>
<a name="L413"></a><tt class="py-lineno"> 413</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">graph_area</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.layout_graph()=Priithon.plt.wxplt.plot_canvas-class.html#layout_graph"><a title="Priithon.plt.wxplt.plot_canvas.layout_graph" class="py-name" href="#" onclick="return doclink('link-132', 'layout_graph', 'link-132');">layout_graph</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L414"></a><tt class="py-lineno"> 414</tt>  <tt class="py-line">        <tt class="py-comment"># center titles around graph area.</tt> </tt>
<a name="L415"></a><tt class="py-lineno"> 415</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.finalize_border_text()=Priithon.plt.wxplt.plot_canvas-class.html#finalize_border_text"><a title="Priithon.plt.wxplt.plot_canvas.finalize_border_text" class="py-name" href="#" onclick="return doclink('link-133', 'finalize_border_text', 'link-133');">finalize_border_text</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt>    </tt>
<a name="L416"></a><tt class="py-lineno"> 416</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt> <tt class="py-op">=</tt> <tt class="py-name">graph_area</tt> </tt>
<a name="L417"></a><tt class="py-lineno"> 417</tt>  <tt class="py-line">        <tt class="py-comment"># clear the dc for all titles</tt> </tt>
<a name="L418"></a><tt class="py-lineno"> 418</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># ? neccessary ?</tt> </tt>
<a name="L419"></a><tt class="py-lineno"> 419</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">for</tt> <tt class="py-name">text_obj</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">all_titles</tt><tt class="py-op">:</tt> </tt>
<a name="L420"></a><tt class="py-lineno"> 420</tt>  <tt class="py-line">            <tt class="py-name">text_obj</tt><tt class="py-op">.</tt><tt id="link-134" class="py-name"><a title="Priithon.plt.plot_objects.text_object.clear_dc" class="py-name" href="#" onclick="return doclink('link-134', 'clear_dc', 'link-65');">clear_dc</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L421"></a><tt class="py-lineno"> 421</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-135" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.layout_data()=Priithon.plt.wxplt.plot_canvas-class.html#layout_data"><a title="Priithon.plt.wxplt.plot_canvas.layout_data" class="py-name" href="#" onclick="return doclink('link-135', 'layout_data', 'link-135');">layout_data</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L422"></a><tt class="py-lineno"> 422</tt>  <tt class="py-line">         </tt>
<a name="L423"></a><tt class="py-lineno"> 423</tt>  <tt class="py-line">        <tt class="py-comment">#self.legend.layout(self.line_list,graph_area,dc)</tt> </tt>
<a name="L424"></a><tt class="py-lineno"> 424</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="plot_canvas.layout_border_text"></a><div id="plot_canvas.layout_border_text-def"><a name="L425"></a><tt class="py-lineno"> 425</tt> <a class="py-toggle" href="#" id="plot_canvas.layout_border_text-toggle" onclick="return toggle('plot_canvas.layout_border_text');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#layout_border_text">layout_border_text</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">graph_area</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.layout_border_text-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.layout_border_text-expanded"><a name="L426"></a><tt class="py-lineno"> 426</tt>  <tt class="py-line">        <tt class="py-comment"># Shrink graph area to make room for titles.</tt> </tt>
<a name="L427"></a><tt class="py-lineno"> 427</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># Also, specify where the text is to live</tt> </tt>
<a name="L428"></a><tt class="py-lineno"> 428</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># in realation to the graph.  This only</tt> </tt>
<a name="L429"></a><tt class="py-lineno"> 429</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># specifies one axis.  The other can only</tt> </tt>
<a name="L430"></a><tt class="py-lineno"> 430</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># be specified after the final graph area</tt> </tt>
<a name="L431"></a><tt class="py-lineno"> 431</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># is calculated.</tt> </tt>
<a name="L432"></a><tt class="py-lineno"> 432</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">margin</tt> <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L433"></a><tt class="py-lineno"> 433</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_top()=Priithon.plt.plot_utility.box_object-class.html#trim_top"><a title="Priithon.plt.plot_utility.box_object.trim_top" class="py-name" href="#" onclick="return doclink('link-136', 'trim_top', 'link-136');">trim_top</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-137" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-137', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-138" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.height()=Priithon.plt.plot_utility.box_object-class.html#height"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-138', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L434"></a><tt class="py-lineno"> 434</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-139" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_bottom()=Priithon.plt.plot_utility.box_object-class.html#trim_bottom"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-139', 'trim_bottom', 'link-139');">trim_bottom</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt id="link-140" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-140', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt>             </tt>
<a name="L435"></a><tt class="py-lineno"> 435</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt id="link-141" class="py-name"><a title="Priithon.plt.plot_utility.rotate" class="py-name" href="#" onclick="return doclink('link-141', 'rotate', 'link-23');">rotate</a></tt> <tt class="py-op">=</tt> <tt class="py-number">90</tt> <tt class="py-comment"># make sure it is rotated</tt> </tt>
<a name="L436"></a><tt class="py-lineno"> 436</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-142" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_left()=Priithon.plt.plot_utility.box_object-class.html#trim_left"><a title="Priithon.plt.plot_utility.box_object.trim_left" class="py-name" href="#" onclick="return doclink('link-142', 'trim_left', 'link-142');">trim_left</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt id="link-143" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.width()=Priithon.plt.plot_utility.box_object-class.html#width"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-143', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L437"></a><tt class="py-lineno"> 437</tt>  <tt class="py-line">        <tt class="py-comment">#this is just to make so extra room for axis labels</tt> </tt>
<a name="L438"></a><tt class="py-lineno"> 438</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#on the x axis...</tt> </tt>
<a name="L439"></a><tt class="py-lineno"> 439</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-144" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.trim_right()=Priithon.plt.plot_utility.box_object-class.html#trim_right"><a title="Priithon.plt.plot_utility.box_object.trim_right" class="py-name" href="#" onclick="return doclink('link-144', 'trim_right', 'link-144');">trim_right</a></tt><tt class="py-op">(</tt><tt class="py-number">12</tt><tt class="py-op">)</tt> </tt>
<a name="L440"></a><tt class="py-lineno"> 440</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">graph_area</tt> </tt>
</div><a name="L441"></a><tt class="py-lineno"> 441</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.layout_data"></a><div id="plot_canvas.layout_data-def"><a name="L442"></a><tt class="py-lineno"> 442</tt> <a class="py-toggle" href="#" id="plot_canvas.layout_data-toggle" onclick="return toggle('plot_canvas.layout_data');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#layout_data">layout_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
</div><a name="L443"></a><tt class="py-lineno"> 443</tt>  <tt class="py-line">        <tt class="py-comment"># get scale and offset</tt> </tt>
<a name="L444"></a><tt class="py-lineno"> 444</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">axis_range</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-145" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-145', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-146', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">float64</tt><tt class="py-op">)</tt> </tt>
<a name="L445"></a><tt class="py-lineno"> 445</tt>  <tt class="py-line">        <tt class="py-name">axis_range</tt><tt class="py-op">[</tt><tt class="py-name">axis_range</tt><tt class="py-op">==</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> <tt class="py-comment"># seb: ZeroDivisionError</tt> </tt>
<a name="L446"></a><tt class="py-lineno"> 446</tt>  <tt class="py-line">        <tt class="py-comment"># negative y to account for positve down in window coordinates</tt> </tt>
<a name="L447"></a><tt class="py-lineno"> 447</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">scale</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-147" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-147', 'size', 'link-13');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">axis_range</tt> <tt class="py-op">*</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L448"></a><tt class="py-lineno"> 448</tt>  <tt class="py-line">        <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-148" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.graph_to_window()=Priithon.plt.wxplt.plot_canvas-class.html#graph_to_window"><a title="Priithon.plt.wxplt.plot_canvas.graph_to_window" class="py-name" href="#" onclick="return doclink('link-148', 'graph_to_window', 'link-148');">graph_to_window</a></tt><tt class="py-op">(</tt><tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0.</tt><tt class="py-op">,</tt><tt class="py-number">0.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L449"></a><tt class="py-lineno"> 449</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt id="link-149" class="py-name" targets="Method Priithon.plt.plot_objects.graphic_list.scale_and_shift()=Priithon.plt.plot_objects.graphic_list-class.html#scale_and_shift,Method Priithon.plt.plot_objects.image_object.scale_and_shift()=Priithon.plt.plot_objects.image_object-class.html#scale_and_shift,Method Priithon.plt.plot_objects.line_object.scale_and_shift()=Priithon.plt.plot_objects.line_object-class.html#scale_and_shift,Method Priithon.plt.plot_objects.poly_points.scale_and_shift()=Priithon.plt.plot_objects.poly_points-class.html#scale_and_shift"><a title="Priithon.plt.plot_objects.graphic_list.scale_and_shift
Priithon.plt.plot_objects.image_object.scale_and_shift
Priithon.plt.plot_objects.line_object.scale_and_shift
Priithon.plt.plot_objects.poly_points.scale_and_shift" class="py-name" href="#" onclick="return doclink('link-149', 'scale_and_shift', 'link-149');">scale_and_shift</a></tt><tt class="py-op">(</tt><tt class="py-name">scale</tt><tt class="py-op">,</tt><tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L450"></a><tt class="py-lineno"> 450</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-150" class="py-name"><a title="Priithon.plt.plot_objects.graphic_list.scale_and_shift
Priithon.plt.plot_objects.image_object.scale_and_shift
Priithon.plt.plot_objects.line_object.scale_and_shift
Priithon.plt.plot_objects.poly_points.scale_and_shift" class="py-name" href="#" onclick="return doclink('link-150', 'scale_and_shift', 'link-149');">scale_and_shift</a></tt><tt class="py-op">(</tt><tt class="py-name">scale</tt><tt class="py-op">,</tt><tt class="py-name">offset</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L451"></a><tt class="py-lineno"> 451</tt>  <tt class="py-line">        <tt class="py-comment">#self.legend </tt> </tt>
<a name="L452"></a><tt class="py-lineno"> 452</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.text_list</tt> </tt>
<a name="L453"></a><tt class="py-lineno"> 453</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.overlays</tt> </tt>
<a name="L454"></a><tt class="py-lineno"> 454</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="plot_canvas.layout_graph"></a><div id="plot_canvas.layout_graph-def"><a name="L455"></a><tt class="py-lineno"> 455</tt> <a class="py-toggle" href="#" id="plot_canvas.layout_graph-toggle" onclick="return toggle('plot_canvas.layout_graph');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#layout_graph">layout_graph</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">graph_area</tt><tt class="py-op">,</tt><tt class="py-param">dc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>                         </tt>
</div><a name="L456"></a><tt class="py-lineno"> 456</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L457"></a><tt class="py-lineno"> 457</tt>  <tt class="py-line">        <tt class="py-comment">#data_x_bounds,data_y_bounds = [0,6.28], [-1.1,1000]</tt> </tt>
<a name="L458"></a><tt class="py-lineno"> 458</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#jeez this is unwieldy code...</tt> </tt>
<a name="L459"></a><tt class="py-lineno"> 459</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">smalls</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">;</tt> <tt class="py-name">bigs</tt> <tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L460"></a><tt class="py-lineno"> 460</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L461"></a><tt class="py-lineno"> 461</tt>  <tt class="py-line">            <tt class="py-name">p1</tt><tt class="py-op">,</tt><tt class="py-name">p2</tt> <tt class="py-op">=</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-151" class="py-name" targets="Method Priithon.plt.plot_objects.graphic_list.bounding_box()=Priithon.plt.plot_objects.graphic_list-class.html#bounding_box,Method Priithon.plt.plot_objects.image_object.bounding_box()=Priithon.plt.plot_objects.image_object-class.html#bounding_box,Method Priithon.plt.plot_objects.poly_points.bounding_box()=Priithon.plt.plot_objects.poly_points-class.html#bounding_box,Function Priithon.plt.plot_utility.bounding_box()=Priithon.plt.plot_utility-module.html#bounding_box"><a title="Priithon.plt.plot_objects.graphic_list.bounding_box
Priithon.plt.plot_objects.image_object.bounding_box
Priithon.plt.plot_objects.poly_points.bounding_box
Priithon.plt.plot_utility.bounding_box" class="py-name" href="#" onclick="return doclink('link-151', 'bounding_box', 'link-151');">bounding_box</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L462"></a><tt class="py-lineno"> 462</tt>  <tt class="py-line">            <tt class="py-name">smalls</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">;</tt><tt class="py-name">bigs</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt> </tt>
<a name="L463"></a><tt class="py-lineno"> 463</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L464"></a><tt class="py-lineno"> 464</tt>  <tt class="py-line">            <tt class="py-name">p1</tt><tt class="py-op">,</tt><tt class="py-name">p2</tt> <tt class="py-op">=</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt id="link-152" class="py-name"><a title="Priithon.plt.plot_objects.graphic_list.bounding_box
Priithon.plt.plot_objects.image_object.bounding_box
Priithon.plt.plot_objects.poly_points.bounding_box
Priithon.plt.plot_utility.bounding_box" class="py-name" href="#" onclick="return doclink('link-152', 'bounding_box', 'link-151');">bounding_box</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L465"></a><tt class="py-lineno"> 465</tt>  <tt class="py-line">            <tt class="py-name">smalls</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">;</tt><tt class="py-name">bigs</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt>         </tt>
<a name="L466"></a><tt class="py-lineno"> 466</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">smalls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
<a name="L467"></a><tt class="py-lineno"> 467</tt>  <tt class="py-line">            <tt class="py-name">min_point</tt> <tt class="py-op">=</tt> <tt id="link-153" class="py-name" targets="Variable Priithon.mandel.minimum=Priithon.mandel-module.html#minimum,Variable Priithon.plt.interface.minimum=Priithon.plt.interface-module.html#minimum,Variable Priithon.plt.minimum=Priithon.plt-module.html#minimum,Variable Priithon.plt.plot_objects.minimum=Priithon.plt.plot_objects-module.html#minimum,Variable Priithon.plt.plot_utility.minimum=Priithon.plt.plot_utility-module.html#minimum,Variable Priithon.plt.wxplt.minimum=Priithon.plt.wxplt-module.html#minimum"><a title="Priithon.mandel.minimum
Priithon.plt.interface.minimum
Priithon.plt.minimum
Priithon.plt.plot_objects.minimum
Priithon.plt.plot_utility.minimum
Priithon.plt.wxplt.minimum" class="py-name" href="#" onclick="return doclink('link-153', 'minimum', 'link-153');">minimum</a></tt><tt class="py-op">.</tt><tt class="py-name">reduce</tt><tt class="py-op">(</tt><tt class="py-name">smalls</tt><tt class="py-op">)</tt> </tt>
<a name="L468"></a><tt class="py-lineno"> 468</tt>  <tt class="py-line">            <tt class="py-name">max_point</tt> <tt class="py-op">=</tt> <tt id="link-154" class="py-name" targets="Variable Priithon.mandel.maximum=Priithon.mandel-module.html#maximum,Variable Priithon.plt.interface.maximum=Priithon.plt.interface-module.html#maximum,Variable Priithon.plt.maximum=Priithon.plt-module.html#maximum,Variable Priithon.plt.plot_objects.maximum=Priithon.plt.plot_objects-module.html#maximum,Variable Priithon.plt.plot_utility.maximum=Priithon.plt.plot_utility-module.html#maximum,Variable Priithon.plt.wxplt.maximum=Priithon.plt.wxplt-module.html#maximum"><a title="Priithon.mandel.maximum
Priithon.plt.interface.maximum
Priithon.plt.maximum
Priithon.plt.plot_objects.maximum
Priithon.plt.plot_utility.maximum
Priithon.plt.wxplt.maximum" class="py-name" href="#" onclick="return doclink('link-154', 'maximum', 'link-154');">maximum</a></tt><tt class="py-op">.</tt><tt class="py-name">reduce</tt><tt class="py-op">(</tt><tt class="py-name">bigs</tt><tt class="py-op">)</tt> </tt>
<a name="L469"></a><tt class="py-lineno"> 469</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L470"></a><tt class="py-lineno"> 470</tt>  <tt class="py-line">            <tt class="py-name">min_point</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L471"></a><tt class="py-lineno"> 471</tt>  <tt class="py-line">            <tt class="py-name">max_point</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>                </tt>
<a name="L472"></a><tt class="py-lineno"> 472</tt>  <tt class="py-line">        <tt class="py-name">data_x_bounds</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">min_point</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">max_point</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L473"></a><tt class="py-lineno"> 473</tt>  <tt class="py-line">        <tt class="py-name">data_y_bounds</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">min_point</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">max_point</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L474"></a><tt class="py-lineno"> 474</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-155" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.calculate_ticks()=Priithon.plt.plot_objects.axis_object-class.html#calculate_ticks"><a title="Priithon.plt.plot_objects.axis_object.calculate_ticks" class="py-name" href="#" onclick="return doclink('link-155', 'calculate_ticks', 'link-155');">calculate_ticks</a></tt><tt class="py-op">(</tt><tt class="py-name">data_x_bounds</tt><tt class="py-op">)</tt> </tt>
<a name="L475"></a><tt class="py-lineno"> 475</tt>  <tt class="py-line">        <tt id="link-156" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-156', 'height', 'link-138');">height</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-157" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.max_label_height()=Priithon.plt.plot_objects.axis_object-class.html#max_label_height"><a title="Priithon.plt.plot_objects.axis_object.max_label_height" class="py-name" href="#" onclick="return doclink('link-157', 'max_label_height', 'link-157');">max_label_height</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L476"></a><tt class="py-lineno"> 476</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-158" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-158', 'trim_bottom', 'link-139');">trim_bottom</a></tt><tt class="py-op">(</tt><tt id="link-159" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-159', 'height', 'link-138');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L477"></a><tt class="py-lineno"> 477</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-160" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.calculate_ticks" class="py-name" href="#" onclick="return doclink('link-160', 'calculate_ticks', 'link-155');">calculate_ticks</a></tt><tt class="py-op">(</tt><tt class="py-name">data_y_bounds</tt><tt class="py-op">)</tt> </tt>
<a name="L478"></a><tt class="py-lineno"> 478</tt>  <tt class="py-line">        <tt id="link-161" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-161', 'width', 'link-143');">width</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-162" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.max_label_width()=Priithon.plt.plot_objects.axis_object-class.html#max_label_width"><a title="Priithon.plt.plot_objects.axis_object.max_label_width" class="py-name" href="#" onclick="return doclink('link-162', 'max_label_width', 'link-162');">max_label_width</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L479"></a><tt class="py-lineno"> 479</tt>  <tt class="py-line">        <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-163" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_left" class="py-name" href="#" onclick="return doclink('link-163', 'trim_left', 'link-142');">trim_left</a></tt><tt class="py-op">(</tt><tt id="link-164" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-164', 'width', 'link-143');">width</a></tt><tt class="py-op">)</tt> </tt>
<a name="L480"></a><tt class="py-lineno"> 480</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt> <tt class="py-op">==</tt> <tt class="py-string">'equal'</tt><tt class="py-op">:</tt> </tt>
<a name="L481"></a><tt class="py-lineno"> 481</tt>  <tt class="py-line">            <tt class="py-name">x_scale</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-165" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-165', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-166" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-166', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L482"></a><tt class="py-lineno"> 482</tt>  <tt class="py-line">            <tt class="py-name">y_scale</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-167" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-167', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-168" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-168', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L483"></a><tt class="py-lineno"> 483</tt>  <tt class="py-line">            <tt class="py-comment">#print 'scales:', x_scale,y_scale,self.x_axis.range(),self.y_axis.range()</tt> </tt>
<a name="L484"></a><tt class="py-lineno"> 484</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">if</tt> <tt class="py-name">x_scale</tt> <tt class="py-op">&gt;</tt> <tt class="py-name">y_scale</tt><tt class="py-op">:</tt> </tt>
<a name="L485"></a><tt class="py-lineno"> 485</tt>  <tt class="py-line">                <tt class="py-name">new_width</tt> <tt class="py-op">=</tt> <tt class="py-name">y_scale</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-169" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-169', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L486"></a><tt class="py-lineno"> 486</tt>  <tt class="py-line">                <tt class="py-name">remove</tt> <tt class="py-op">=</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-170" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-170', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">new_width</tt><tt class="py-op">)</tt> </tt>
<a name="L487"></a><tt class="py-lineno"> 487</tt>  <tt class="py-line">                <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-171" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_left" class="py-name" href="#" onclick="return doclink('link-171', 'trim_left', 'link-142');">trim_left</a></tt><tt class="py-op">(</tt><tt class="py-name">remove</tt><tt class="py-op">)</tt> </tt>
<a name="L488"></a><tt class="py-lineno"> 488</tt>  <tt class="py-line">                <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-172" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_right" class="py-name" href="#" onclick="return doclink('link-172', 'trim_right', 'link-144');">trim_right</a></tt><tt class="py-op">(</tt><tt class="py-name">remove</tt><tt class="py-op">)</tt> </tt>
<a name="L489"></a><tt class="py-lineno"> 489</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt>     </tt>
<a name="L490"></a><tt class="py-lineno"> 490</tt>  <tt class="py-line">                <tt class="py-name">new_height</tt> <tt class="py-op">=</tt> <tt class="py-name">x_scale</tt> <tt class="py-op">*</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-173" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-173', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L491"></a><tt class="py-lineno"> 491</tt>  <tt class="py-line">                <tt class="py-name">remove</tt> <tt class="py-op">=</tt> <tt class="py-number">.5</tt> <tt class="py-op">*</tt> <tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-174" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-174', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">new_height</tt><tt class="py-op">)</tt> </tt>
<a name="L492"></a><tt class="py-lineno"> 492</tt>  <tt class="py-line">                <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-175" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_top" class="py-name" href="#" onclick="return doclink('link-175', 'trim_top', 'link-136');">trim_top</a></tt><tt class="py-op">(</tt><tt class="py-name">remove</tt><tt class="py-op">)</tt> </tt>
<a name="L493"></a><tt class="py-lineno"> 493</tt>  <tt class="py-line">                <tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-176" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-176', 'trim_bottom', 'link-139');">trim_bottom</a></tt><tt class="py-op">(</tt><tt class="py-name">remove</tt><tt class="py-op">)</tt> </tt>
<a name="L494"></a><tt class="py-lineno"> 494</tt>  <tt class="py-line">        <tt class="py-comment">#self.y2_axis = axis_object(graph_location='left',rotate=90)</tt> </tt>
<a name="L495"></a><tt class="py-lineno"> 495</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y2_axis.label_location = 'plus'</tt> </tt>
<a name="L496"></a><tt class="py-lineno"> 496</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y2_axis.calculate_ticks(y2bounds)</tt> </tt>
<a name="L497"></a><tt class="py-lineno"> 497</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#width = self.y2_axis.max_label_width(dc)</tt> </tt>
<a name="L498"></a><tt class="py-lineno"> 498</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#graph_area.trim_right(width)</tt> </tt>
<a name="L499"></a><tt class="py-lineno"> 499</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-177" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.layout()=Priithon.plt.plot_objects.axis_object-class.html#layout,Method Priithon.plt.plot_objects.border_object.layout()=Priithon.plt.plot_objects.border_object-class.html#layout,Method Priithon.plt.plot_objects.legend_object.layout()=Priithon.plt.plot_objects.legend_object-class.html#layout"><a title="Priithon.plt.plot_objects.axis_object.layout
Priithon.plt.plot_objects.border_object.layout
Priithon.plt.plot_objects.legend_object.layout" class="py-name" href="#" onclick="return doclink('link-177', 'layout', 'link-177');">layout</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L500"></a><tt class="py-lineno"> 500</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-178" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.move()=Priithon.plt.plot_objects.axis_object-class.html#move,Method Priithon.plt.plot_utility.box_object.move()=Priithon.plt.plot_utility.box_object-class.html#move"><a title="Priithon.plt.plot_objects.axis_object.move
Priithon.plt.plot_utility.box_object.move" class="py-name" href="#" onclick="return doclink('link-178', 'move', 'link-178');">move</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-179" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.left()=Priithon.plt.plot_utility.box_object-class.html#left"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-179', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-180" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.bottom()=Priithon.plt.plot_utility.box_object-class.html#bottom"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-180', 'bottom', 'link-180');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L501"></a><tt class="py-lineno"> 501</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">)</tt> </tt>
<a name="L502"></a><tt class="py-lineno"> 502</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-181" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.layout
Priithon.plt.plot_objects.border_object.layout
Priithon.plt.plot_objects.legend_object.layout" class="py-name" href="#" onclick="return doclink('link-181', 'layout', 'link-177');">layout</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L503"></a><tt class="py-lineno"> 503</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-182" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.move
Priithon.plt.plot_utility.box_object.move" class="py-name" href="#" onclick="return doclink('link-182', 'move', 'link-178');">move</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-183" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-183', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">graph_area</tt><tt class="py-op">.</tt><tt id="link-184" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-184', 'bottom', 'link-180');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L504"></a><tt class="py-lineno"> 504</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">)</tt> </tt>
<a name="L505"></a><tt class="py-lineno"> 505</tt>  <tt class="py-line">        <tt class="py-comment">#self.y2_axis.grid_color = 'wheat'</tt> </tt>
<a name="L506"></a><tt class="py-lineno"> 506</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y2_axis.layout(graph_area,dc)</tt> </tt>
<a name="L507"></a><tt class="py-lineno"> 507</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y2_axis.move((graph_area.right(),graph_area.bottom()))</tt> </tt>
<a name="L508"></a><tt class="py-lineno"> 508</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.axes.append(self.y2_axis)</tt> </tt>
<a name="L509"></a><tt class="py-lineno"> 509</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">border</tt> <tt class="py-op">=</tt> <tt id="link-185" class="py-name" targets="Class Priithon.plt.plot_objects.border_object=Priithon.plt.plot_objects.border_object-class.html"><a title="Priithon.plt.plot_objects.border_object" class="py-name" href="#" onclick="return doclink('link-185', 'border_object', 'link-185');">border_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L510"></a><tt class="py-lineno"> 510</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">border</tt><tt class="py-op">.</tt><tt id="link-186" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.layout
Priithon.plt.plot_objects.border_object.layout
Priithon.plt.plot_objects.legend_object.layout" class="py-name" href="#" onclick="return doclink('link-186', 'layout', 'link-177');">layout</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">)</tt> </tt>
<a name="L511"></a><tt class="py-lineno"> 511</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">graph_area</tt> </tt>
</div><a name="L512"></a><tt class="py-lineno"> 512</tt>  <tt class="py-line">         </tt>
<a name="plot_canvas.finalize_border_text"></a><div id="plot_canvas.finalize_border_text-def"><a name="L513"></a><tt class="py-lineno"> 513</tt> <a class="py-toggle" href="#" id="plot_canvas.finalize_border_text-toggle" onclick="return toggle('plot_canvas.finalize_border_text');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#finalize_border_text">finalize_border_text</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">graph_area</tt><tt class="py-op">,</tt><tt class="py-param">dc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.finalize_border_text-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.finalize_border_text-expanded"><a name="L514"></a><tt class="py-lineno"> 514</tt>  <tt class="py-line">        <tt class="py-comment"># Center the titles around the graph.</tt> </tt>
<a name="L515"></a><tt class="py-lineno"> 515</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># -- Really need to make axis object box_objects.</tt> </tt>
<a name="L516"></a><tt class="py-lineno"> 516</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    Use this to help determine more appropriate </tt> </tt>
<a name="L517"></a><tt class="py-lineno"> 517</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    title location.  Current works fine</tt> </tt>
<a name="L518"></a><tt class="py-lineno"> 518</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    if axis labels are beside graph.  Title</tt> </tt>
<a name="L519"></a><tt class="py-lineno"> 519</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    will be to far away if they are in center of graph        </tt> </tt>
<a name="L520"></a><tt class="py-lineno"> 520</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">margin</tt> <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L521"></a><tt class="py-lineno"> 521</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-187" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-187', 'title', 'link-17');">title</a></tt><tt class="py-op">:</tt>    </tt>
<a name="L522"></a><tt class="py-lineno"> 522</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-188" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-188', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-189" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on_x_of()=Priithon.plt.plot_utility.box_object-class.html#center_on_x_of"><a title="Priithon.plt.plot_utility.box_object.center_on_x_of" class="py-name" href="#" onclick="return doclink('link-189', 'center_on_x_of', 'link-189');">center_on_x_of</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">)</tt> </tt>
<a name="L523"></a><tt class="py-lineno"> 523</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-190" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-190', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt id="link-191" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.above()=Priithon.plt.plot_utility.box_object-class.html#above"><a title="Priithon.plt.plot_utility.box_object.above" class="py-name" href="#" onclick="return doclink('link-191', 'above', 'link-191');">above</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">)</tt> </tt>
<a name="L524"></a><tt class="py-lineno"> 524</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">:</tt>  </tt>
<a name="L525"></a><tt class="py-lineno"> 525</tt>  <tt class="py-line">            <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-192" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.max_label_height" class="py-name" href="#" onclick="return doclink('link-192', 'max_label_height', 'link-157');">max_label_height</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L526"></a><tt class="py-lineno"> 526</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt id="link-193" class="py-name"><a title="Priithon.plt.plot_utility.box_object.center_on_x_of" class="py-name" href="#" onclick="return doclink('link-193', 'center_on_x_of', 'link-189');">center_on_x_of</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">)</tt> </tt>
<a name="L527"></a><tt class="py-lineno"> 527</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt id="link-194" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.below()=Priithon.plt.plot_utility.box_object-class.html#below"><a title="Priithon.plt.plot_utility.box_object.below" class="py-name" href="#" onclick="return doclink('link-194', 'below', 'link-194');">below</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt> <tt class="py-op">+</tt> <tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
<a name="L528"></a><tt class="py-lineno"> 528</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">:</tt>  </tt>
<a name="L529"></a><tt class="py-lineno"> 529</tt>  <tt class="py-line">            <tt class="py-name">offset</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-195" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.max_label_width" class="py-name" href="#" onclick="return doclink('link-195', 'max_label_width', 'link-162');">max_label_width</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L530"></a><tt class="py-lineno"> 530</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt id="link-196" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on_y_of()=Priithon.plt.plot_utility.box_object-class.html#center_on_y_of"><a title="Priithon.plt.plot_utility.box_object.center_on_y_of" class="py-name" href="#" onclick="return doclink('link-196', 'center_on_y_of', 'link-196');">center_on_y_of</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">)</tt> </tt>
<a name="L531"></a><tt class="py-lineno"> 531</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt id="link-197" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.left_of()=Priithon.plt.plot_utility.box_object-class.html#left_of"><a title="Priithon.plt.plot_utility.box_object.left_of" class="py-name" href="#" onclick="return doclink('link-197', 'left_of', 'link-197');">left_of</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">margin</tt><tt class="py-op">+</tt><tt class="py-name">offset</tt><tt class="py-op">)</tt> </tt>
</div><a name="L532"></a><tt class="py-lineno"> 532</tt>  <tt class="py-line">        <tt class="py-comment">#if self.y2_title:self.y2_title.center_on_y_of(graph_area)</tt> </tt>
<a name="L533"></a><tt class="py-lineno"> 533</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="plot_canvas.graph_to_window"></a><div id="plot_canvas.graph_to_window-def"><a name="L534"></a><tt class="py-lineno"> 534</tt> <a class="py-toggle" href="#" id="plot_canvas.graph_to_window-toggle" onclick="return toggle('plot_canvas.graph_to_window');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#graph_to_window">graph_to_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">pts</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.graph_to_window-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.graph_to_window-expanded"><a name="L535"></a><tt class="py-lineno"> 535</tt>  <tt class="py-line">        <tt class="py-name">axis_range</tt> <tt class="py-op">=</tt>  <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt id="link-198" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-198', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt id="link-199" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-199', 'range', 'link-4');">range</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L536"></a><tt class="py-lineno"> 536</tt>  <tt class="py-line">        <tt class="py-name">axis_range</tt><tt class="py-op">[</tt><tt class="py-name">axis_range</tt><tt class="py-op">==</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> <tt class="py-comment"># seb: ZeroDivisionError</tt> </tt>
<a name="L537"></a><tt class="py-lineno"> 537</tt>  <tt class="py-line">        <tt class="py-comment"># negative y to account for positve down in window coordinates</tt> </tt>
<a name="L538"></a><tt class="py-lineno"> 538</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">scale</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-200" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-200', 'size', 'link-13');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">axis_range</tt> <tt class="py-op">*</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L539"></a><tt class="py-lineno"> 539</tt>  <tt class="py-line">        <tt class="py-name">graph_min</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L540"></a><tt class="py-lineno"> 540</tt>  <tt class="py-line">        <tt class="py-name">zero_offset</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0.</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">-</tt> <tt class="py-name">graph_min</tt><tt class="py-op">)</tt>  <tt class="py-op">*</tt> <tt class="py-name">scale</tt>  </tt>
<a name="L541"></a><tt class="py-lineno"> 541</tt>  <tt class="py-line">        <tt class="py-name">graph_offset</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-201" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-201', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-202" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-202', 'bottom', 'link-180');">bottom</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L542"></a><tt class="py-lineno"> 542</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pts</tt> <tt class="py-op">*</tt> <tt class="py-name">scale</tt> <tt class="py-op">+</tt> <tt class="py-name">zero_offset</tt> <tt class="py-op">+</tt> <tt class="py-name">graph_offset</tt> </tt>
</div><a name="L543"></a><tt class="py-lineno"> 543</tt>  <tt class="py-line">                    </tt>
<a name="plot_canvas.reset_size"></a><div id="plot_canvas.reset_size-def"><a name="L544"></a><tt class="py-lineno"> 544</tt> <a class="py-toggle" href="#" id="plot_canvas.reset_size-toggle" onclick="return toggle('plot_canvas.reset_size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#reset_size">reset_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.reset_size-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.reset_size-expanded"><a name="L545"></a><tt class="py-lineno"> 545</tt>  <tt class="py-line">        <tt class="py-name">new_size</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetClientSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L546"></a><tt class="py-lineno"> 546</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">new_size</tt> <tt class="py-op">!=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt><tt class="py-op">:</tt> </tt>
<a name="L547"></a><tt class="py-lineno"> 547</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-203" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.layout_all()=Priithon.plt.wxplt.plot_canvas-class.html#layout_all"><a title="Priithon.plt.wxplt.plot_canvas.layout_all" class="py-name" href="#" onclick="return doclink('link-203', 'layout_all', 'link-203');">layout_all</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L548"></a><tt class="py-lineno"> 548</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt> <tt class="py-op">=</tt> <tt class="py-name">new_size</tt> </tt>
</div><a name="L549"></a><tt class="py-lineno"> 549</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas.draw_graph_area"></a><div id="plot_canvas.draw_graph_area-def"><a name="L550"></a><tt class="py-lineno"> 550</tt> <a class="py-toggle" href="#" id="plot_canvas.draw_graph_area-toggle" onclick="return toggle('plot_canvas.draw_graph_area');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#draw_graph_area">draw_graph_area</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">dc</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.draw_graph_area-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.draw_graph_area-expanded"><a name="L551"></a><tt class="py-lineno"> 551</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">dc</tt><tt class="py-op">:</tt> <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt>                                      </tt>
<a name="L552"></a><tt class="py-lineno"> 552</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-204" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.layout_data" class="py-name" href="#" onclick="return doclink('link-204', 'layout_data', 'link-135');">layout_data</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-comment"># just to check how real time plot would go...</tt> </tt>
<a name="L553"></a><tt class="py-lineno"> 553</tt>  <tt class="py-line"> </tt>
<a name="L554"></a><tt class="py-lineno"> 554</tt>  <tt class="py-line">        <tt class="py-name">gb</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt> </tt>
<a name="L555"></a><tt class="py-lineno"> 555</tt>  <tt class="py-line">        <tt class="py-comment">#clear the plot area</tt> </tt>
<a name="L556"></a><tt class="py-lineno"> 556</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># SHOULD SET PEN HERE TO FILL BACKGROUND WITH CORRECT COLOR</tt> </tt>
<a name="L557"></a><tt class="py-lineno"> 557</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">fill_color</tt> <tt class="py-op">=</tt> <tt id="link-205" class="py-name"><a title="Priithon.plt.plot_objects.get_color" class="py-name" href="#" onclick="return doclink('link-205', 'get_color', 'link-89');">get_color</a></tt><tt class="py-op">(</tt><tt class="py-string">'white'</tt><tt class="py-op">)</tt> </tt>
<a name="L558"></a><tt class="py-lineno"> 558</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetPen</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Pen</tt><tt class="py-op">(</tt><tt class="py-name">fill_color</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L559"></a><tt class="py-lineno"> 559</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBrush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Brush</tt><tt class="py-op">(</tt><tt class="py-name">fill_color</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L560"></a><tt class="py-lineno"> 560</tt>  <tt class="py-line">        <tt class="py-comment"># NEEDED FOR REAL-TIME PLOTTING</tt> </tt>
<a name="L561"></a><tt class="py-lineno"> 561</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DrawRectangle</tt><tt class="py-op">(</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-206" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-206', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-207" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.top()=Priithon.plt.plot_utility.box_object-class.html#top"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-207', 'top', 'link-207');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L562"></a><tt class="py-lineno"> 562</tt>  <tt class="py-line">                         <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-208" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-208', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-209" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-209', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L563"></a><tt class="py-lineno"> 563</tt>  <tt class="py-line">        <tt class="py-comment">#needed to make sure images stay within bounds</tt> </tt>
<a name="L564"></a><tt class="py-lineno"> 564</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##dc.SetClippingRegion(gb.left()-1,gb.top()-1,</tt> </tt>
<a name="L565"></a><tt class="py-lineno"> 565</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">##                     gb.width()+2,gb.height()+2)  # mod by GAP 26092003</tt> </tt>
<a name="L566"></a><tt class="py-lineno"> 566</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt id="link-210" class="py-name" targets="Method Priithon.wxPyPlot.FloatDCWrapper.SetClippingRegion()=Priithon.wxPyPlot.FloatDCWrapper-class.html#SetClippingRegion"><a title="Priithon.wxPyPlot.FloatDCWrapper.SetClippingRegion" class="py-name" href="#" onclick="return doclink('link-210', 'SetClippingRegion', 'link-210');">SetClippingRegion</a></tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-211" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-211', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-212" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-212', 'top', 'link-207');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L567"></a><tt class="py-lineno"> 567</tt>  <tt class="py-line">                             <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-213" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-213', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-214" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-214', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L568"></a><tt class="py-lineno"> 568</tt>  <tt class="py-line">        <tt class="py-comment"># draw images</tt> </tt>
<a name="L569"></a><tt class="py-lineno"> 569</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt id="link-215" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-215', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L570"></a><tt class="py-lineno"> 570</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DestroyClippingRegion</tt><tt class="py-op">(</tt><tt class="py-op">)</tt>         </tt>
<a name="L571"></a><tt class="py-lineno"> 571</tt>  <tt class="py-line">        <tt class="py-comment"># draw axes lines and tick marks               </tt> </tt>
<a name="L572"></a><tt class="py-lineno"> 572</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">t1</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
<a name="L573"></a><tt class="py-lineno"> 573</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-216" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-216', 'axis', 'link-44');">axis</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt><tt class="py-op">:</tt> </tt>
<a name="L574"></a><tt class="py-lineno"> 574</tt>  <tt class="py-line">            <tt id="link-217" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-217', 'axis', 'link-44');">axis</a></tt><tt class="py-op">.</tt><tt id="link-218" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.draw_lines()=Priithon.plt.plot_objects.axis_object-class.html#draw_lines"><a title="Priithon.plt.plot_objects.axis_object.draw_lines" class="py-name" href="#" onclick="return doclink('link-218', 'draw_lines', 'link-218');">draw_lines</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L575"></a><tt class="py-lineno"> 575</tt>  <tt class="py-line">        <tt class="py-comment">#for axis in self.axes:</tt> </tt>
<a name="L576"></a><tt class="py-lineno"> 576</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    axis.draw_grid_lines(dc)</tt> </tt>
<a name="L577"></a><tt class="py-lineno"> 577</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#for axis in self.axes:</tt> </tt>
<a name="L578"></a><tt class="py-lineno"> 578</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    axis.draw_ticks(dc)    </tt> </tt>
<a name="L579"></a><tt class="py-lineno"> 579</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">t2</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L580"></a><tt class="py-lineno"> 580</tt>  <tt class="py-line">        <tt class="py-comment">#print 'lines:', t2 - t1</tt> </tt>
<a name="L581"></a><tt class="py-lineno"> 581</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#draw border</tt> </tt>
<a name="L582"></a><tt class="py-lineno"> 582</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">t1</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">border</tt><tt class="py-op">.</tt><tt id="link-219" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-219', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> <tt class="py-name">t2</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L583"></a><tt class="py-lineno"> 583</tt>  <tt class="py-line">        <tt class="py-comment">#print 'border:', t2 - t1                    </tt> </tt>
<a name="L584"></a><tt class="py-lineno"> 584</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># slightly larger clipping area so that marks</tt> </tt>
<a name="L585"></a><tt class="py-lineno"> 585</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># aren't clipped on edges</tt> </tt>
<a name="L586"></a><tt class="py-lineno"> 586</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># should really clip markers and lines separately</tt> </tt>
<a name="L587"></a><tt class="py-lineno"> 587</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># draw lines</tt> </tt>
<a name="L588"></a><tt class="py-lineno"> 588</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-220" class="py-name" targets="Method Priithon.plt.plot_objects.auto_line_list.clip_box()=Priithon.plt.plot_objects.auto_line_list-class.html#clip_box,Method Priithon.plt.plot_objects.line_object.clip_box()=Priithon.plt.plot_objects.line_object-class.html#clip_box"><a title="Priithon.plt.plot_objects.auto_line_list.clip_box
Priithon.plt.plot_objects.line_object.clip_box" class="py-name" href="#" onclick="return doclink('link-220', 'clip_box', 'link-220');">clip_box</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt><tt class="py-op">)</tt> </tt>
<a name="L589"></a><tt class="py-lineno"> 589</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-221" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-221', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
</div><a name="L590"></a><tt class="py-lineno"> 590</tt>  <tt class="py-line">        <tt class="py-comment"># draw text        </tt> </tt>
<a name="L591"></a><tt class="py-lineno"> 591</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># draw legend</tt> </tt>
<a name="L592"></a><tt class="py-lineno"> 592</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># self.legend.draw(dc)</tt> </tt>
<a name="L593"></a><tt class="py-lineno"> 593</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># draw overlay objects</tt> </tt>
<a name="L594"></a><tt class="py-lineno"> 594</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="plot_canvas.draw"></a><div id="plot_canvas.draw-def"><a name="L595"></a><tt class="py-lineno"> 595</tt> <a class="py-toggle" href="#" id="plot_canvas.draw-toggle" onclick="return toggle('plot_canvas.draw');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#draw">draw</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">dc</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.draw-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.draw-expanded"><a name="L596"></a><tt class="py-lineno"> 596</tt>  <tt class="py-line">        <tt class="py-comment">#if not len(self.line_list) or len(self.image_list):</tt> </tt>
<a name="L597"></a><tt class="py-lineno"> 597</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    return</tt> </tt>
<a name="L598"></a><tt class="py-lineno"> 598</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># resize if necessary</tt> </tt>
<a name="L599"></a><tt class="py-lineno"> 599</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print 'draw'</tt> </tt>
<a name="L600"></a><tt class="py-lineno"> 600</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print 'dc:',dc</tt> </tt>
<a name="L601"></a><tt class="py-lineno"> 601</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">t1</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-222" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.reset_size()=Priithon.plt.wxplt.plot_canvas-class.html#reset_size"><a title="Priithon.plt.wxplt.plot_canvas.reset_size" class="py-name" href="#" onclick="return doclink('link-222', 'reset_size', 'link-222');">reset_size</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt><tt class="py-op">;</tt><tt class="py-name">t2</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L602"></a><tt class="py-lineno"> 602</tt>  <tt class="py-line">        <tt class="py-comment">#print 'resize:',t2 - t1        </tt> </tt>
<a name="L603"></a><tt class="py-lineno"> 603</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">dc</tt><tt class="py-op">:</tt> <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L604"></a><tt class="py-lineno"> 604</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBackground</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">backgroundBrush</tt> <tt class="py-op">)</tt> <tt class="py-comment">#seb  added: no flickering</tt> </tt>
<a name="L605"></a><tt class="py-lineno"> 605</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt id="link-223" class="py-name" targets="Method Priithon.wxPyPlot.PlotCanvas.Clear()=Priithon.wxPyPlot.PlotCanvas-class.html#Clear"><a title="Priithon.wxPyPlot.PlotCanvas.Clear" class="py-name" href="#" onclick="return doclink('link-223', 'Clear', 'link-223');">Clear</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>                               <tt class="py-comment">#seb  added: no flickering</tt> </tt>
<a name="L606"></a><tt class="py-lineno"> 606</tt>  <tt class="py-line"> </tt>
<a name="L607"></a><tt class="py-lineno"> 607</tt>  <tt class="py-line">        <tt class="py-comment"># draw titles and axes labels</tt> </tt>
<a name="L608"></a><tt class="py-lineno"> 608</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">t1</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
<a name="L609"></a><tt class="py-lineno"> 609</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">text</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">all_titles</tt><tt class="py-op">:</tt> </tt>
<a name="L610"></a><tt class="py-lineno"> 610</tt>  <tt class="py-line">            <tt class="py-name">text</tt><tt class="py-op">.</tt><tt id="link-224" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-224', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt>         </tt>
<a name="L611"></a><tt class="py-lineno"> 611</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-225" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-225', 'axis', 'link-44');">axis</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt><tt class="py-op">:</tt> </tt>
<a name="L612"></a><tt class="py-lineno"> 612</tt>  <tt class="py-line">            <tt id="link-226" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-226', 'axis', 'link-44');">axis</a></tt><tt class="py-op">.</tt><tt id="link-227" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.draw_labels()=Priithon.plt.plot_objects.axis_object-class.html#draw_labels"><a title="Priithon.plt.plot_objects.axis_object.draw_labels" class="py-name" href="#" onclick="return doclink('link-227', 'draw_labels', 'link-227');">draw_labels</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L613"></a><tt class="py-lineno"> 613</tt>  <tt class="py-line">        <tt class="py-name">t2</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L614"></a><tt class="py-lineno"> 614</tt>  <tt class="py-line">        <tt class="py-comment">#print 'text:',t2 - t1</tt> </tt>
<a name="L615"></a><tt class="py-lineno"> 615</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-228" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.draw_graph_area" class="py-name" href="#" onclick="return doclink('link-228', 'draw_graph_area', 'link-5');">draw_graph_area</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
</div><a name="L616"></a><tt class="py-lineno"> 616</tt>  <tt class="py-line">             </tt>
<a name="plot_canvas.update"></a><div id="plot_canvas.update-def"><a name="L617"></a><tt class="py-lineno"> 617</tt> <a class="py-toggle" href="#" id="plot_canvas.update-toggle" onclick="return toggle('plot_canvas.update');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#update">update</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.update-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.update-expanded"><a name="L618"></a><tt class="py-lineno"> 618</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client_size</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> <tt class="py-comment"># forces the layout</tt> </tt>
<a name="L619"></a><tt class="py-lineno"> 619</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-229" class="py-name" targets="Method Priithon.py.crust.Display.Refresh()=Priithon.py.crust.Display-class.html#Refresh"><a title="Priithon.py.crust.Display.Refresh" class="py-name" href="#" onclick="return doclink('link-229', 'Refresh', 'link-229');">Refresh</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L620"></a><tt class="py-lineno"> 620</tt>  <tt class="py-line"> </tt>
<a name="plot_canvas._saveZoomHist"></a><div id="plot_canvas._saveZoomHist-def"><a name="L621"></a><tt class="py-lineno"> 621</tt> <a class="py-toggle" href="#" id="plot_canvas._saveZoomHist-toggle" onclick="return toggle('plot_canvas._saveZoomHist');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#_saveZoomHist">_saveZoomHist</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas._saveZoomHist-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas._saveZoomHist-expanded"><a name="L622"></a><tt class="py-lineno"> 622</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L623"></a><tt class="py-lineno"> 623</tt>  <tt class="py-line"><tt class="py-docstring">        append current zomm settings into history </tt> </tt>
<a name="L624"></a><tt class="py-lineno"> 624</tt>  <tt class="py-line"><tt class="py-docstring">        -- trucating tail of history, if we are currently not at its end</tt> </tt>
<a name="L625"></a><tt class="py-lineno"> 625</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L626"></a><tt class="py-lineno"> 626</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-op">[</tt> </tt>
<a name="L627"></a><tt class="py-lineno"> 627</tt>  <tt class="py-line">            <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt><tt class="py-op">,</tt>  </tt>
<a name="L628"></a><tt class="py-lineno"> 628</tt>  <tt class="py-line">             <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt><tt class="py-op">,</tt>  </tt>
<a name="L629"></a><tt class="py-lineno"> 629</tt>  <tt class="py-line">             <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt><tt class="py-op">)</tt> </tt>
<a name="L630"></a><tt class="py-lineno"> 630</tt>  <tt class="py-line">            <tt class="py-op">]</tt> </tt>
<a name="L631"></a><tt class="py-lineno"> 631</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-number">1</tt> <tt class="py-comment"># points to (current) hist index, where new zooms are appended</tt> </tt>
</div><a name="plot_canvas._setFromZoomHist"></a><div id="plot_canvas._setFromZoomHist-def"><a name="L632"></a><tt class="py-lineno"> 632</tt> <a class="py-toggle" href="#" id="plot_canvas._setFromZoomHist-toggle" onclick="return toggle('plot_canvas._setFromZoomHist');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#_setFromZoomHist">_setFromZoomHist</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas._setFromZoomHist-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas._setFromZoomHist-expanded"><a name="L633"></a><tt class="py-lineno"> 633</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt><tt class="py-op">,</tt>  </tt>
<a name="L634"></a><tt class="py-lineno"> 634</tt>  <tt class="py-line">         <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt><tt class="py-op">,</tt> </tt>
<a name="L635"></a><tt class="py-lineno"> 635</tt>  <tt class="py-line">         <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt><tt class="py-op">]</tt> </tt>
</div><a name="L636"></a><tt class="py-lineno"> 636</tt>  <tt class="py-line">         </tt>
<a name="plot_canvas.auto_zoom"></a><div id="plot_canvas.auto_zoom-def"><a name="L637"></a><tt class="py-lineno"> 637</tt> <a class="py-toggle" href="#" id="plot_canvas.auto_zoom-toggle" onclick="return toggle('plot_canvas.auto_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#auto_zoom">auto_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.auto_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.auto_zoom-expanded"><a name="L638"></a><tt class="py-lineno"> 638</tt>  <tt class="py-line">        <tt class="py-comment"># zoom to full scale</tt> </tt>
<a name="L639"></a><tt class="py-lineno"> 639</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># cannot call autoscale(), since validate_active() apparently</tt> </tt>
<a name="L640"></a><tt class="py-lineno"> 640</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># leads to a race condition:(</tt> </tt>
<a name="L641"></a><tt class="py-lineno"> 641</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L642"></a><tt class="py-lineno"> 642</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L643"></a><tt class="py-lineno"> 643</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L644"></a><tt class="py-lineno"> 644</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L645"></a><tt class="py-lineno"> 645</tt>  <tt class="py-line"> </tt>
<a name="L646"></a><tt class="py-lineno"> 646</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-230" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas._saveZoomHist" class="py-name" href="#" onclick="return doclink('link-230', '_saveZoomHist', 'link-41');">_saveZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L647"></a><tt class="py-lineno"> 647</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-231" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-231', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="plot_canvas.prev_zoom"></a><div id="plot_canvas.prev_zoom-def"><a name="L648"></a><tt class="py-lineno"> 648</tt> <a class="py-toggle" href="#" id="plot_canvas.prev_zoom-toggle" onclick="return toggle('plot_canvas.prev_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#prev_zoom">prev_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.prev_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.prev_zoom-expanded"><a name="L649"></a><tt class="py-lineno"> 649</tt>  <tt class="py-line">         </tt>
<a name="L650"></a><tt class="py-lineno"> 650</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">-=</tt> <tt class="py-number">1</tt> </tt>
<a name="L651"></a><tt class="py-lineno"> 651</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L652"></a><tt class="py-lineno"> 652</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">+=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">)</tt> </tt>
<a name="L653"></a><tt class="py-lineno"> 653</tt>  <tt class="py-line">         </tt>
<a name="L654"></a><tt class="py-lineno"> 654</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-232" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas._setFromZoomHist()=Priithon.plt.wxplt.plot_canvas-class.html#_setFromZoomHist"><a title="Priithon.plt.wxplt.plot_canvas._setFromZoomHist" class="py-name" href="#" onclick="return doclink('link-232', '_setFromZoomHist', 'link-232');">_setFromZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L655"></a><tt class="py-lineno"> 655</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-233" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-233', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="plot_canvas.next_zoom"></a><div id="plot_canvas.next_zoom-def"><a name="L656"></a><tt class="py-lineno"> 656</tt> <a class="py-toggle" href="#" id="plot_canvas.next_zoom-toggle" onclick="return toggle('plot_canvas.next_zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#next_zoom">next_zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.next_zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.next_zoom-expanded"><a name="L657"></a><tt class="py-lineno"> 657</tt>  <tt class="py-line">         </tt>
<a name="L658"></a><tt class="py-lineno"> 658</tt>  <tt class="py-line">        <tt class="py-comment">#self.x_axis.bounds = ['auto','auto']</tt> </tt>
<a name="L659"></a><tt class="py-lineno"> 659</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y_axis.bounds = ['auto','auto']</tt> </tt>
<a name="L660"></a><tt class="py-lineno"> 660</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.x_axis.tick_interval = 'auto'</tt> </tt>
<a name="L661"></a><tt class="py-lineno"> 661</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.y_axis.tick_interval = 'auto'</tt> </tt>
<a name="L662"></a><tt class="py-lineno"> 662</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L663"></a><tt class="py-lineno"> 663</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">&gt;=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L664"></a><tt class="py-lineno"> 664</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">zoom_hist_i</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L665"></a><tt class="py-lineno"> 665</tt>  <tt class="py-line">         </tt>
<a name="L666"></a><tt class="py-lineno"> 666</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-234" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas._setFromZoomHist" class="py-name" href="#" onclick="return doclink('link-234', '_setFromZoomHist', 'link-232');">_setFromZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L667"></a><tt class="py-lineno"> 667</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-235" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-235', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L668"></a><tt class="py-lineno"> 668</tt>  <tt class="py-line">     </tt>
<a name="plot_canvas.zoom"></a><div id="plot_canvas.zoom-def"><a name="L669"></a><tt class="py-lineno"> 669</tt> <a class="py-toggle" href="#" id="plot_canvas.zoom-toggle" onclick="return toggle('plot_canvas.zoom');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_canvas-class.html#zoom">zoom</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">stop</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_canvas.zoom-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_canvas.zoom-expanded"><a name="L670"></a><tt class="py-lineno"> 670</tt>  <tt class="py-line">        <tt class="py-docstring">"""Delete selection band and zoom selection to full scale."""</tt> </tt>
<a name="L671"></a><tt class="py-lineno"> 671</tt>  <tt class="py-line">        <tt class="py-comment"># delete rubberband</tt> </tt>
<a name="L672"></a><tt class="py-lineno"> 672</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ClientDC</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L673"></a><tt class="py-lineno"> 673</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetLogicalFunction</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">XOR</tt><tt class="py-op">)</tt> </tt>
<a name="L674"></a><tt class="py-lineno"> 674</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetPen</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GREY_PEN</tt><tt class="py-op">)</tt> </tt>
<a name="L675"></a><tt class="py-lineno"> 675</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetBrush</tt><tt class="py-op">(</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">TRANSPARENT_BRUSH</tt><tt class="py-op">)</tt> </tt>
<a name="L676"></a><tt class="py-lineno"> 676</tt>  <tt class="py-line">        <tt class="py-name">diff</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> </tt>
<a name="L677"></a><tt class="py-lineno"> 677</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">DrawRectangle</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt id="link-236" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-236', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> </tt>
<a name="L678"></a><tt class="py-lineno"> 678</tt>  <tt class="py-line">                         <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt id="link-237" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-237', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">diff</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L679"></a><tt class="py-lineno"> 679</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> <tt class="py-op">=</tt> <tt class="py-name">stop</tt> </tt>
<a name="L680"></a><tt class="py-lineno"> 680</tt>  <tt class="py-line">        <tt class="py-comment"># get zoom-area coordinates</tt> </tt>
<a name="L681"></a><tt class="py-lineno"> 681</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">p1</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_start</tt> </tt>
<a name="L682"></a><tt class="py-lineno"> 682</tt>  <tt class="py-line">        <tt class="py-name">p2</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mouse_selection_stop</tt> </tt>
<a name="L683"></a><tt class="py-lineno"> 683</tt>  <tt class="py-line">        <tt class="py-name">gb</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph_box</tt> </tt>
<a name="L684"></a><tt class="py-lineno"> 684</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt id="link-238" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-238', 'x', 'link-84');">x</a></tt><tt class="py-op">-</tt><tt class="py-name">p2</tt><tt class="py-op">.</tt><tt id="link-239" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-239', 'x', 'link-84');">x</a></tt><tt class="py-op">)</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">3</tt> <tt class="py-keyword">and</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">-</tt><tt class="py-name">p2</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">3</tt><tt class="py-op">:</tt> </tt>
<a name="L685"></a><tt class="py-lineno"> 685</tt>  <tt class="py-line">            <tt class="py-comment"># zoom aborted (we assume)</tt> </tt>
<a name="L686"></a><tt class="py-lineno"> 686</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">return</tt> </tt>
<a name="L687"></a><tt class="py-lineno"> 687</tt>  <tt class="py-line">        <tt id="link-240" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-240', 'left', 'link-179');">left</a></tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt id="link-241" class="py-name" targets="Function Priithon.useful.min()=Priithon.useful-module.html#min"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-241', 'min', 'link-241');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt id="link-242" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-242', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">p2</tt><tt class="py-op">.</tt><tt id="link-243" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-243', 'x', 'link-84');">x</a></tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-244" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-244', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-245" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-245', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L688"></a><tt class="py-lineno"> 688</tt>  <tt class="py-line">        <tt id="link-246" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.right()=Priithon.plt.plot_utility.box_object-class.html#right"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-246', 'right', 'link-246');">right</a></tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt id="link-247" class="py-name"><a title="Priithon.useful.max" class="py-name" href="#" onclick="return doclink('link-247', 'max', 'link-102');">max</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt id="link-248" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-248', 'x', 'link-84');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">p2</tt><tt class="py-op">.</tt><tt id="link-249" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-249', 'x', 'link-84');">x</a></tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-250', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-251" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-251', 'width', 'link-143');">width</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L689"></a><tt class="py-lineno"> 689</tt>  <tt class="py-line">        <tt id="link-252" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-252', 'top', 'link-207');">top</a></tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt id="link-253" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-253', 'min', 'link-241');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">,</tt> <tt class="py-name">p2</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-254', 'top', 'link-207');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-255" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-255', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L690"></a><tt class="py-lineno"> 690</tt>  <tt class="py-line">        <tt id="link-256" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-256', 'bottom', 'link-180');">bottom</a></tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt id="link-257" class="py-name"><a title="Priithon.useful.max" class="py-name" href="#" onclick="return doclink('link-257', 'max', 'link-102');">max</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">,</tt> <tt class="py-name">p2</tt><tt class="py-op">.</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-258" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-258', 'top', 'link-207');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-name">gb</tt><tt class="py-op">.</tt><tt id="link-259" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-259', 'height', 'link-138');">height</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L691"></a><tt class="py-lineno"> 691</tt>  <tt class="py-line">        <tt class="py-comment"># convert to real bounds</tt> </tt>
<a name="L692"></a><tt class="py-lineno"> 692</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt id="link-260" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-260', 'width', 'link-143');">width</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L693"></a><tt class="py-lineno"> 693</tt>  <tt class="py-line">        <tt id="link-261" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-261', 'height', 'link-138');">height</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L694"></a><tt class="py-lineno"> 694</tt>  <tt class="py-line">        <tt id="link-262" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-262', 'left', 'link-179');">left</a></tt> <tt class="py-op">=</tt> <tt id="link-263" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-263', 'left', 'link-179');">left</a></tt> <tt class="py-op">*</tt> <tt id="link-264" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-264', 'width', 'link-143');">width</a></tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L695"></a><tt class="py-lineno"> 695</tt>  <tt class="py-line">        <tt id="link-265" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-265', 'right', 'link-246');">right</a></tt> <tt class="py-op">=</tt> <tt id="link-266" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-266', 'right', 'link-246');">right</a></tt> <tt class="py-op">*</tt> <tt id="link-267" class="py-name"><a title="Priithon.plt.plot_utility.box_object.width" class="py-name" href="#" onclick="return doclink('link-267', 'width', 'link-143');">width</a></tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L696"></a><tt class="py-lineno"> 696</tt>  <tt class="py-line">        <tt id="link-268" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-268', 'top', 'link-207');">top</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt id="link-269" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-269', 'top', 'link-207');">top</a></tt> <tt class="py-op">*</tt> <tt id="link-270" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-270', 'height', 'link-138');">height</a></tt> </tt>
<a name="L697"></a><tt class="py-lineno"> 697</tt>  <tt class="py-line">        <tt id="link-271" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-271', 'bottom', 'link-180');">bottom</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt id="link-272" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-272', 'bottom', 'link-180');">bottom</a></tt> <tt class="py-op">*</tt> <tt id="link-273" class="py-name"><a title="Priithon.plt.plot_utility.box_object.height" class="py-name" href="#" onclick="return doclink('link-273', 'height', 'link-138');">height</a></tt> </tt>
<a name="L698"></a><tt class="py-lineno"> 698</tt>  <tt class="py-line">        <tt class="py-name">x_int</tt> <tt class="py-op">=</tt> <tt id="link-274" class="py-name" targets="Function Priithon.plt.plot_utility.auto_interval()=Priithon.plt.plot_utility-module.html#auto_interval"><a title="Priithon.plt.plot_utility.auto_interval" class="py-name" href="#" onclick="return doclink('link-274', 'auto_interval', 'link-274');">auto_interval</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-275" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-275', 'left', 'link-179');">left</a></tt><tt class="py-op">,</tt> <tt id="link-276" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-276', 'right', 'link-246');">right</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L699"></a><tt class="py-lineno"> 699</tt>  <tt class="py-line">        <tt class="py-name">y_int</tt> <tt class="py-op">=</tt> <tt id="link-277" class="py-name"><a title="Priithon.plt.plot_utility.auto_interval" class="py-name" href="#" onclick="return doclink('link-277', 'auto_interval', 'link-274');">auto_interval</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-278" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-278', 'bottom', 'link-180');">bottom</a></tt><tt class="py-op">,</tt><tt id="link-279" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-279', 'top', 'link-207');">top</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L700"></a><tt class="py-lineno"> 700</tt>  <tt class="py-line"> </tt>
<a name="L701"></a><tt class="py-lineno"> 701</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt id="link-280" class="py-name" targets="Function Priithon.plt.plot_utility.auto_bounds()=Priithon.plt.plot_utility-module.html#auto_bounds"><a title="Priithon.plt.plot_utility.auto_bounds" class="py-name" href="#" onclick="return doclink('link-280', 'auto_bounds', 'link-280');">auto_bounds</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-281" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-281', 'left', 'link-179');">left</a></tt><tt class="py-op">,</tt> <tt id="link-282" class="py-name"><a title="Priithon.plt.plot_utility.box_object.right" class="py-name" href="#" onclick="return doclink('link-282', 'right', 'link-246');">right</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">x_int</tt><tt class="py-op">)</tt> </tt>
<a name="L702"></a><tt class="py-lineno"> 702</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt id="link-283" class="py-name"><a title="Priithon.plt.plot_utility.auto_bounds" class="py-name" href="#" onclick="return doclink('link-283', 'auto_bounds', 'link-280');">auto_bounds</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-284" class="py-name"><a title="Priithon.plt.plot_utility.box_object.bottom" class="py-name" href="#" onclick="return doclink('link-284', 'bottom', 'link-180');">bottom</a></tt><tt class="py-op">,</tt> <tt id="link-285" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-285', 'top', 'link-207');">top</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">y_int</tt><tt class="py-op">)</tt> </tt>
<a name="L703"></a><tt class="py-lineno"> 703</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-286" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas._saveZoomHist" class="py-name" href="#" onclick="return doclink('link-286', '_saveZoomHist', 'link-41');">_saveZoomHist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L704"></a><tt class="py-lineno"> 704</tt>  <tt class="py-line"> </tt>
<a name="L705"></a><tt class="py-lineno"> 705</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-287', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L706"></a><tt class="py-lineno"> 706</tt>  <tt class="py-line"> </tt>
<a name="L707"></a><tt class="py-lineno"> 707</tt>  <tt class="py-line"> </tt>
<a name="L708"></a><tt class="py-lineno"> 708</tt>  <tt class="py-line"> </tt>
<a name="L709"></a><tt class="py-lineno"> 709</tt>  <tt class="py-line"> </tt>
<a name="L710"></a><tt class="py-lineno"> 710</tt>  <tt class="py-line"><tt class="py-comment">#------------------ tick utilities -----------------------</tt> </tt>
<a name="L711"></a><tt class="py-lineno"> 711</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># flexible log function</tt> </tt>
<a name="L712"></a><tt class="py-lineno"> 712</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#------------------ end tick utilities -----------------------</tt> </tt>
<a name="L713"></a><tt class="py-lineno"> 713</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="graph_printout"></a><div id="graph_printout-def"><a name="L714"></a><tt class="py-lineno"> 714</tt> <a class="py-toggle" href="#" id="graph_printout-toggle" onclick="return toggle('graph_printout');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.wxplt.graph_printout-class.html">graph_printout</a><tt class="py-op">(</tt><tt class="py-base-class">wx</tt><tt class="py-op">.</tt><tt class="py-base-class">Printout</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="graph_printout-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="graph_printout-expanded"><a name="L715"></a><tt class="py-lineno"> 715</tt>  <tt class="py-line">    <tt class="py-docstring">"""Print wrapper."""</tt> </tt>
<a name="L716"></a><tt class="py-lineno"> 716</tt>  <tt class="py-line">    <tt class="py-comment"># Do not change method names in this class,</tt> </tt>
<a name="L717"></a><tt class="py-lineno"> 717</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># we have to override wxPrintout methods here!</tt> </tt>
<a name="graph_printout.__init__"></a><div id="graph_printout.__init__-def"><a name="L718"></a><tt class="py-lineno"> 718</tt> <a class="py-toggle" href="#" id="graph_printout.__init__-toggle" onclick="return toggle('graph_printout.__init__');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.graph_printout-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">graph</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="graph_printout.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="graph_printout.__init__-expanded"><a name="L719"></a><tt class="py-lineno"> 719</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt id="link-288" class="py-name" targets="Method Priithon.wxPyPlot.PlotCanvas.Printout()=Priithon.wxPyPlot.PlotCanvas-class.html#Printout"><a title="Priithon.wxPyPlot.PlotCanvas.Printout" class="py-name" href="#" onclick="return doclink('link-288', 'Printout', 'link-288');">Printout</a></tt><tt class="py-op">.</tt><tt id="link-289" class="py-name"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-289', '__init__', 'link-11');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L720"></a><tt class="py-lineno"> 720</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph</tt> <tt class="py-op">=</tt> <tt class="py-name">graph</tt> </tt>
</div><a name="L721"></a><tt class="py-lineno"> 721</tt>  <tt class="py-line"> </tt>
<a name="graph_printout.HasPage"></a><div id="graph_printout.HasPage-def"><a name="L722"></a><tt class="py-lineno"> 722</tt> <a class="py-toggle" href="#" id="graph_printout.HasPage-toggle" onclick="return toggle('graph_printout.HasPage');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.graph_printout-class.html#HasPage">HasPage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">page</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="graph_printout.HasPage-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="graph_printout.HasPage-expanded"><a name="L723"></a><tt class="py-lineno"> 723</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">page</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L724"></a><tt class="py-lineno"> 724</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-290" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-290', 'True', 'link-98');">True</a></tt> </tt>
<a name="L725"></a><tt class="py-lineno"> 725</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L726"></a><tt class="py-lineno"> 726</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-291" class="py-name"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-291', 'False', 'link-95');">False</a></tt> </tt>
</div><a name="L727"></a><tt class="py-lineno"> 727</tt>  <tt class="py-line"> </tt>
<a name="graph_printout.GetPageInfo"></a><div id="graph_printout.GetPageInfo-def"><a name="L728"></a><tt class="py-lineno"> 728</tt> <a class="py-toggle" href="#" id="graph_printout.GetPageInfo-toggle" onclick="return toggle('graph_printout.GetPageInfo');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.graph_printout-class.html#GetPageInfo">GetPageInfo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="graph_printout.GetPageInfo-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="graph_printout.GetPageInfo-expanded"><a name="L729"></a><tt class="py-lineno"> 729</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
</div><a name="L730"></a><tt class="py-lineno"> 730</tt>  <tt class="py-line"> </tt>
<a name="graph_printout.OnPrintPage"></a><div id="graph_printout.OnPrintPage-def"><a name="L731"></a><tt class="py-lineno"> 731</tt> <a class="py-toggle" href="#" id="graph_printout.OnPrintPage-toggle" onclick="return toggle('graph_printout.OnPrintPage');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.graph_printout-class.html#OnPrintPage">OnPrintPage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">page</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="graph_printout.OnPrintPage-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="graph_printout.OnPrintPage-expanded"><a name="L732"></a><tt class="py-lineno"> 732</tt>  <tt class="py-line">        <tt class="py-name">dc</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetDC</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L733"></a><tt class="py-lineno"> 733</tt>  <tt class="py-line">        <tt class="py-comment"># .5 inch margins are automatic</tt> </tt>
<a name="L734"></a><tt class="py-lineno"> 734</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># on my HP.  Probably not standard.</tt> </tt>
<a name="L735"></a><tt class="py-lineno"> 735</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># Need smarter margin control.</tt> </tt>
<a name="L736"></a><tt class="py-lineno"> 736</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">w_inch</tt><tt class="py-op">,</tt><tt class="py-name">h_inch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetPPIPrinter</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L737"></a><tt class="py-lineno"> 737</tt>  <tt class="py-line">        <tt class="py-name">x_margin</tt> <tt class="py-op">=</tt> <tt class="py-number">.0</tt><tt class="py-op">*</tt> <tt class="py-name">w_inch</tt> </tt>
<a name="L738"></a><tt class="py-lineno"> 738</tt>  <tt class="py-line">        <tt class="py-name">y_margin</tt> <tt class="py-op">=</tt> <tt class="py-number">.0</tt><tt class="py-op">*</tt> <tt class="py-name">h_inch</tt> </tt>
<a name="L739"></a><tt class="py-lineno"> 739</tt>  <tt class="py-line">        <tt class="py-comment">#-------------------------------------------</tt> </tt>
<a name="L740"></a><tt class="py-lineno"> 740</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># One possible method of setting scaling factors...</tt> </tt>
<a name="L741"></a><tt class="py-lineno"> 741</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print w_inch,h_inch</tt> </tt>
<a name="L742"></a><tt class="py-lineno"> 742</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print dc.GetSizeTuple()        </tt> </tt>
<a name="L743"></a><tt class="py-lineno"> 743</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">graph_box</tt> <tt class="py-op">=</tt> <tt id="link-292" class="py-name"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-292', 'box_object', 'link-129');">box_object</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph</tt><tt class="py-op">.</tt><tt class="py-name">GetSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L744"></a><tt class="py-lineno"> 744</tt>  <tt class="py-line">        <tt class="py-comment"># Get the size of the DC in pixels</tt> </tt>
<a name="L745"></a><tt class="py-lineno"> 745</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">page_size</tt> <tt class="py-op">=</tt> <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">GetSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L746"></a><tt class="py-lineno"> 746</tt>  <tt class="py-line">        <tt class="py-comment">#print 'dc size:',page_size</tt> </tt>
<a name="L747"></a><tt class="py-lineno"> 747</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#page_size = self.GetPageSizePixels()</tt> </tt>
<a name="L748"></a><tt class="py-lineno"> 748</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print 'page size:',page_size</tt> </tt>
<a name="L749"></a><tt class="py-lineno"> 749</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">print_box</tt> <tt class="py-op">=</tt> <tt id="link-293" class="py-name"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-293', 'box_object', 'link-129');">box_object</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">page_size</tt><tt class="py-op">)</tt>         </tt>
<a name="L750"></a><tt class="py-lineno"> 750</tt>  <tt class="py-line">        <tt class="py-name">print_box</tt><tt class="py-op">.</tt><tt id="link-294" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_left" class="py-name" href="#" onclick="return doclink('link-294', 'trim_left', 'link-142');">trim_left</a></tt><tt class="py-op">(</tt><tt class="py-name">x_margin</tt><tt class="py-op">)</tt> </tt>
<a name="L751"></a><tt class="py-lineno"> 751</tt>  <tt class="py-line">        <tt class="py-name">print_box</tt><tt class="py-op">.</tt><tt id="link-295" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_right" class="py-name" href="#" onclick="return doclink('link-295', 'trim_right', 'link-144');">trim_right</a></tt><tt class="py-op">(</tt><tt class="py-name">x_margin</tt><tt class="py-op">)</tt> </tt>
<a name="L752"></a><tt class="py-lineno"> 752</tt>  <tt class="py-line">        <tt class="py-name">print_box</tt><tt class="py-op">.</tt><tt id="link-296" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_top" class="py-name" href="#" onclick="return doclink('link-296', 'trim_top', 'link-136');">trim_top</a></tt><tt class="py-op">(</tt><tt class="py-name">y_margin</tt><tt class="py-op">)</tt> </tt>
<a name="L753"></a><tt class="py-lineno"> 753</tt>  <tt class="py-line">        <tt class="py-name">print_box</tt><tt class="py-op">.</tt><tt id="link-297" class="py-name"><a title="Priithon.plt.plot_utility.box_object.trim_bottom" class="py-name" href="#" onclick="return doclink('link-297', 'trim_bottom', 'link-139');">trim_bottom</a></tt><tt class="py-op">(</tt><tt class="py-name">y_margin</tt><tt class="py-op">)</tt> </tt>
<a name="L754"></a><tt class="py-lineno"> 754</tt>  <tt class="py-line">        <tt class="py-comment"># Calculate a suitable scaling factor</tt> </tt>
<a name="L755"></a><tt class="py-lineno"> 755</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">scales</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-name">print_box</tt><tt class="py-op">.</tt><tt id="link-298" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-298', 'size', 'link-13');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">float64</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-299" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-299', 'size', 'link-13');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L756"></a><tt class="py-lineno"> 756</tt>  <tt class="py-line">        <tt class="py-comment"># Use x or y scaling factor, whichever fits on the DC</tt> </tt>
<a name="L757"></a><tt class="py-lineno"> 757</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">scale</tt> <tt class="py-op">=</tt> <tt id="link-300" class="py-name"><a title="Priithon.useful.min" class="py-name" href="#" onclick="return doclink('link-300', 'min', 'link-241');">min</a></tt><tt class="py-op">(</tt><tt class="py-name">scales</tt><tt class="py-op">)</tt> </tt>
<a name="L758"></a><tt class="py-lineno"> 758</tt>  <tt class="py-line">        <tt class="py-comment"># resize the graph and center on the page</tt> </tt>
<a name="L759"></a><tt class="py-lineno"> 759</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-301" class="py-name"><a title="Priithon.plt.plot_utility.box_object.inflate" class="py-name" href="#" onclick="return doclink('link-301', 'inflate', 'link-130');">inflate</a></tt><tt class="py-op">(</tt><tt class="py-name">scale</tt><tt class="py-op">)</tt> </tt>
<a name="L760"></a><tt class="py-lineno"> 760</tt>  <tt class="py-line">        <tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-302" class="py-name" targets="Method Priithon.plt.plot_utility.box_object.center_on()=Priithon.plt.plot_utility.box_object-class.html#center_on"><a title="Priithon.plt.plot_utility.box_object.center_on" class="py-name" href="#" onclick="return doclink('link-302', 'center_on', 'link-302');">center_on</a></tt><tt class="py-op">(</tt><tt class="py-name">print_box</tt><tt class="py-op">)</tt> </tt>
<a name="L761"></a><tt class="py-lineno"> 761</tt>  <tt class="py-line">        <tt class="py-comment"># set the device scale and origin</tt> </tt>
<a name="L762"></a><tt class="py-lineno"> 762</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt class="py-name">SetUserScale</tt><tt class="py-op">(</tt><tt class="py-name">scale</tt><tt class="py-op">,</tt> <tt class="py-name">scale</tt><tt class="py-op">)</tt> </tt>
<a name="L763"></a><tt class="py-lineno"> 763</tt>  <tt class="py-line">        <tt class="py-name">dc</tt><tt class="py-op">.</tt><tt id="link-303" class="py-name" targets="Method Priithon.wxPyPlot.FloatDCWrapper.SetDeviceOrigin()=Priithon.wxPyPlot.FloatDCWrapper-class.html#SetDeviceOrigin"><a title="Priithon.wxPyPlot.FloatDCWrapper.SetDeviceOrigin" class="py-name" href="#" onclick="return doclink('link-303', 'SetDeviceOrigin', 'link-303');">SetDeviceOrigin</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-304" class="py-name"><a title="Priithon.plt.plot_utility.box_object.left" class="py-name" href="#" onclick="return doclink('link-304', 'left', 'link-179');">left</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">graph_box</tt><tt class="py-op">.</tt><tt id="link-305" class="py-name"><a title="Priithon.plt.plot_utility.box_object.top" class="py-name" href="#" onclick="return doclink('link-305', 'top', 'link-207');">top</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L764"></a><tt class="py-lineno"> 764</tt>  <tt class="py-line">        <tt class="py-comment">#-------------------------------------------</tt> </tt>
<a name="L765"></a><tt class="py-lineno"> 765</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print 'print dc size:', dc.GetSizeTuple()</tt> </tt>
<a name="L766"></a><tt class="py-lineno"> 766</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">graph</tt><tt class="py-op">.</tt><tt id="link-306" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-306', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-name">dc</tt><tt class="py-op">)</tt> </tt>
<a name="L767"></a><tt class="py-lineno"> 767</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-307" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-307', 'True', 'link-98');">True</a></tt> </tt>
</div></div><a name="L768"></a><tt class="py-lineno"> 768</tt>  <tt class="py-line"> </tt>
<a name="L769"></a><tt class="py-lineno"> 769</tt>  <tt class="py-line"> </tt>
<a name="L770"></a><tt class="py-lineno"> 770</tt>  <tt class="py-line"><tt class="py-comment"># 20090807 -- appears to be unused</tt> </tt>
<a name="L771"></a><tt class="py-lineno"> 771</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-string">'''</tt> </tt>
<a name="L772"></a><tt class="py-lineno"> 772</tt>  <tt class="py-line"><tt class="py-string">class plot_window(plot_canvas):</tt> </tt>
<a name="L773"></a><tt class="py-lineno"> 773</tt>  <tt class="py-line"><tt class="py-string">    """Plot canvas window.</tt> </tt>
<a name="L774"></a><tt class="py-lineno"> 774</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L775"></a><tt class="py-lineno"> 775</tt>  <tt class="py-line"><tt class="py-string">    This is a complete q+d hack, but it does (somewhat) work.</tt> </tt>
<a name="L776"></a><tt class="py-lineno"> 776</tt>  <tt class="py-line"><tt class="py-string">    """</tt> </tt>
<a name="L777"></a><tt class="py-lineno"> 777</tt>  <tt class="py-line"><tt class="py-string">    def __init__(self, parent, id = -1, pos=wx.DefaultPosition,</tt> </tt>
<a name="L778"></a><tt class="py-lineno"> 778</tt>  <tt class="py-line"><tt class="py-string">                 size=wx.DefaultSize,**attr):</tt> </tt>
<a name="L779"></a><tt class="py-lineno"> 779</tt>  <tt class="py-line"><tt class="py-string">        plot_canvas.__init__(self, parent, id, pos, size)</tt> </tt>
<a name="L780"></a><tt class="py-lineno"> 780</tt>  <tt class="py-line"><tt class="py-string">        self.parent = parent</tt> </tt>
<a name="L781"></a><tt class="py-lineno"> 781</tt>  <tt class="py-line"><tt class="py-string">        self.proxy_object_alive = True</tt> </tt>
<a name="L782"></a><tt class="py-lineno"> 782</tt>  <tt class="py-line"><tt class="py-string">        scipy.plt.figure(self)</tt> </tt>
<a name="L783"></a><tt class="py-lineno"> 783</tt>  <tt class="py-line"><tt class="py-string">        self.layout_all()</tt> </tt>
<a name="L784"></a><tt class="py-lineno"> 784</tt>  <tt class="py-line"><tt class="py-string">        scipy.plt.xaxis('fit')</tt> </tt>
<a name="L785"></a><tt class="py-lineno"> 785</tt>  <tt class="py-line"><tt class="py-string">        # initial print setup</tt> </tt>
<a name="L786"></a><tt class="py-lineno"> 786</tt>  <tt class="py-line"><tt class="py-string">        self.print_data = wx.PrintData()</tt> </tt>
<a name="L787"></a><tt class="py-lineno"> 787</tt>  <tt class="py-line"><tt class="py-string">        self.print_data.SetPaperId(wx.PAPER_LETTER)</tt> </tt>
<a name="L788"></a><tt class="py-lineno"> 788</tt>  <tt class="py-line"><tt class="py-string">        self.print_data.SetOrientation(wx.LANDSCAPE)</tt> </tt>
<a name="L789"></a><tt class="py-lineno"> 789</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L790"></a><tt class="py-lineno"> 790</tt>  <tt class="py-line"><tt class="py-string">    def add(self, x, y, **keywds):</tt> </tt>
<a name="L791"></a><tt class="py-lineno"> 791</tt>  <tt class="py-line"><tt class="py-string">        """Add data to plot."""</tt> </tt>
<a name="L792"></a><tt class="py-lineno"> 792</tt>  <tt class="py-line"><tt class="py-string">        groups = scipy.plt.plot_groups([x, y, 'b-'])</tt> </tt>
<a name="L793"></a><tt class="py-lineno"> 793</tt>  <tt class="py-line"><tt class="py-string">        lines = []</tt> </tt>
<a name="L794"></a><tt class="py-lineno"> 794</tt>  <tt class="py-line"><tt class="py-string">        for group in groups:</tt> </tt>
<a name="L795"></a><tt class="py-lineno"> 795</tt>  <tt class="py-line"><tt class="py-string">            lines.extend(scipy.plt.lines_from_group(group))</tt> </tt>
<a name="L796"></a><tt class="py-lineno"> 796</tt>  <tt class="py-line"><tt class="py-string">        # check for hold here</tt> </tt>
<a name="L797"></a><tt class="py-lineno"> 797</tt>  <tt class="py-line"><tt class="py-string">        for name in plot_objects.poly_marker._attributes.keys():</tt> </tt>
<a name="L798"></a><tt class="py-lineno"> 798</tt>  <tt class="py-line"><tt class="py-string">            value = keywds.get(name)</tt> </tt>
<a name="L799"></a><tt class="py-lineno"> 799</tt>  <tt class="py-line"><tt class="py-string">            if value is not None:</tt> </tt>
<a name="L800"></a><tt class="py-lineno"> 800</tt>  <tt class="py-line"><tt class="py-string">                for k in range(len(lines)):</tt> </tt>
<a name="L801"></a><tt class="py-lineno"> 801</tt>  <tt class="py-line"><tt class="py-string">                    exec('lines[k].markers.%s = value' % name)</tt> </tt>
<a name="L802"></a><tt class="py-lineno"> 802</tt>  <tt class="py-line"><tt class="py-string">        for i in lines:</tt> </tt>
<a name="L803"></a><tt class="py-lineno"> 803</tt>  <tt class="py-line"><tt class="py-string">            self.line_list.append(i)</tt> </tt>
<a name="L804"></a><tt class="py-lineno"> 804</tt>  <tt class="py-line"><tt class="py-string">        self.update();</tt> </tt>
<a name="L805"></a><tt class="py-lineno"> 805</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L806"></a><tt class="py-lineno"> 806</tt>  <tt class="py-line"><tt class="py-string">    def clear(self):</tt> </tt>
<a name="L807"></a><tt class="py-lineno"> 807</tt>  <tt class="py-line"><tt class="py-string">        """Clear canvas, remove all plots."""</tt> </tt>
<a name="L808"></a><tt class="py-lineno"> 808</tt>  <tt class="py-line"><tt class="py-string">        self.line_list = auto_line_list()</tt> </tt>
<a name="L809"></a><tt class="py-lineno"> 809</tt>  <tt class="py-line"><tt class="py-string">        scipy.plt.autoscale()</tt> </tt>
<a name="L810"></a><tt class="py-lineno"> 810</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L811"></a><tt class="py-lineno"> 811</tt>  <tt class="py-line"><tt class="py-string">    def set_title(self, title):</tt> </tt>
<a name="L812"></a><tt class="py-lineno"> 812</tt>  <tt class="py-line"><tt class="py-string">        """Set plot title."""</tt> </tt>
<a name="L813"></a><tt class="py-lineno"> 813</tt>  <tt class="py-line"><tt class="py-string">        self.title = text_window(self, title)</tt> </tt>
<a name="L814"></a><tt class="py-lineno"> 814</tt>  <tt class="py-line"><tt class="py-string">        self.all_titles[0] = self.title</tt> </tt>
<a name="L815"></a><tt class="py-lineno"> 815</tt>  <tt class="py-line"><tt class="py-string">        self.update()</tt> </tt>
<a name="L816"></a><tt class="py-lineno"> 816</tt>  <tt class="py-line"><tt class="py-string">        </tt> </tt>
<a name="L817"></a><tt class="py-lineno"> 817</tt>  <tt class="py-line"><tt class="py-string">    def set_xaxis_title(self, xtitle):</tt> </tt>
<a name="L818"></a><tt class="py-lineno"> 818</tt>  <tt class="py-line"><tt class="py-string">        """Set x-axis title"""</tt> </tt>
<a name="L819"></a><tt class="py-lineno"> 819</tt>  <tt class="py-line"><tt class="py-string">        self.x_title = text_window(self, xtitle)</tt> </tt>
<a name="L820"></a><tt class="py-lineno"> 820</tt>  <tt class="py-line"><tt class="py-string">        self.all_titles[1] = self.x_title</tt> </tt>
<a name="L821"></a><tt class="py-lineno"> 821</tt>  <tt class="py-line"><tt class="py-string">        self.update()</tt> </tt>
<a name="L822"></a><tt class="py-lineno"> 822</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L823"></a><tt class="py-lineno"> 823</tt>  <tt class="py-line"><tt class="py-string">    def set_yaxis_title(self, ytitle):</tt> </tt>
<a name="L824"></a><tt class="py-lineno"> 824</tt>  <tt class="py-line"><tt class="py-string">        """Set y-axis title"""</tt> </tt>
<a name="L825"></a><tt class="py-lineno"> 825</tt>  <tt class="py-line"><tt class="py-string">        self.y_title = text_window(self, ytitle)</tt> </tt>
<a name="L826"></a><tt class="py-lineno"> 826</tt>  <tt class="py-line"><tt class="py-string">        self.all_titles[2] = self.y_title</tt> </tt>
<a name="L827"></a><tt class="py-lineno"> 827</tt>  <tt class="py-line"><tt class="py-string">        self.update()</tt> </tt>
<a name="L828"></a><tt class="py-lineno"> 828</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L829"></a><tt class="py-lineno"> 829</tt>  <tt class="py-line"><tt class="py-string">    def printout(self, paper=None):</tt> </tt>
<a name="L830"></a><tt class="py-lineno"> 830</tt>  <tt class="py-line"><tt class="py-string">        """Print current plot."""</tt> </tt>
<a name="L831"></a><tt class="py-lineno"> 831</tt>  <tt class="py-line"><tt class="py-string">        if paper != None:</tt> </tt>
<a name="L832"></a><tt class="py-lineno"> 832</tt>  <tt class="py-line"><tt class="py-string">            self.print_data.SetPaperId(paper)</tt> </tt>
<a name="L833"></a><tt class="py-lineno"> 833</tt>  <tt class="py-line"><tt class="py-string">        pdd = wx.PrintDialogData()</tt> </tt>
<a name="L834"></a><tt class="py-lineno"> 834</tt>  <tt class="py-line"><tt class="py-string">        pdd.SetPrintData(self.print_data)</tt> </tt>
<a name="L835"></a><tt class="py-lineno"> 835</tt>  <tt class="py-line"><tt class="py-string">        printer = wx.Printer(pdd)</tt> </tt>
<a name="L836"></a><tt class="py-lineno"> 836</tt>  <tt class="py-line"><tt class="py-string">        out = graph_printout(self)</tt> </tt>
<a name="L837"></a><tt class="py-lineno"> 837</tt>  <tt class="py-line"><tt class="py-string">        print_ok = printer.Print(self.parent, out)</tt> </tt>
<a name="L838"></a><tt class="py-lineno"> 838</tt>  <tt class="py-line"><tt class="py-string">        if print_ok:</tt> </tt>
<a name="L839"></a><tt class="py-lineno"> 839</tt>  <tt class="py-line"><tt class="py-string">            self.print_data = printer.GetPrintDialogData().GetPrintData()</tt> </tt>
<a name="L840"></a><tt class="py-lineno"> 840</tt>  <tt class="py-line"><tt class="py-string">        out.Destroy()</tt> </tt>
<a name="L841"></a><tt class="py-lineno"> 841</tt>  <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L842"></a><tt class="py-lineno"> 842</tt>  <tt class="py-line"><tt class="py-string">    def print_preview(self):</tt> </tt>
<a name="L843"></a><tt class="py-lineno"> 843</tt>  <tt class="py-line"><tt class="py-string">        """Print-preview current plot."""</tt> </tt>
<a name="L844"></a><tt class="py-lineno"> 844</tt>  <tt class="py-line"><tt class="py-string">        printout = graph_printout(self)</tt> </tt>
<a name="L845"></a><tt class="py-lineno"> 845</tt>  <tt class="py-line"><tt class="py-string">        printout2 = graph_printout(self)</tt> </tt>
<a name="L846"></a><tt class="py-lineno"> 846</tt>  <tt class="py-line"><tt class="py-string">        self.preview = wx.PrintPreview(printout, printout2, self.print_data)</tt> </tt>
<a name="L847"></a><tt class="py-lineno"> 847</tt>  <tt class="py-line"><tt class="py-string">        if not self.preview.Ok():</tt> </tt>
<a name="L848"></a><tt class="py-lineno"> 848</tt>  <tt class="py-line"><tt class="py-string">            wx.MessageDialog(self, "Print Preview failed.\n" \</tt> </tt>
<a name="L849"></a><tt class="py-lineno"> 849</tt>  <tt class="py-line"><tt class="py-string">                               "Check that default printer is configured\n", \</tt> </tt>
<a name="L850"></a><tt class="py-lineno"> 850</tt>  <tt class="py-line"><tt class="py-string">                               "Print error", wx.OK|wx.CENTRE).ShowModal()</tt> </tt>
<a name="L851"></a><tt class="py-lineno"> 851</tt>  <tt class="py-line"><tt class="py-string">        else:</tt> </tt>
<a name="L852"></a><tt class="py-lineno"> 852</tt>  <tt class="py-line"><tt class="py-string">            frame = wx.PreviewFrame(self.preview, self.parent, "Preview")</tt> </tt>
<a name="L853"></a><tt class="py-lineno"> 853</tt>  <tt class="py-line"><tt class="py-string">            frame.Initialize()</tt> </tt>
<a name="L854"></a><tt class="py-lineno"> 854</tt>  <tt class="py-line"><tt class="py-string">            frame.SetPosition(self.GetPosition())</tt> </tt>
<a name="L855"></a><tt class="py-lineno"> 855</tt>  <tt class="py-line"><tt class="py-string">            frame.SetSize(self.GetSize())</tt> </tt>
<a name="L856"></a><tt class="py-lineno"> 856</tt>  <tt class="py-line"><tt class="py-string">            frame.Show(True)</tt> </tt>
<a name="L857"></a><tt class="py-lineno"> 857</tt>  <tt class="py-line"><tt class="py-string">'''</tt> </tt>
<a name="L858"></a><tt class="py-lineno"> 858</tt>  <tt class="py-line"> </tt>
<a name="plot_frame"></a><div id="plot_frame-def"><a name="L859"></a><tt class="py-lineno"> 859</tt> <a class="py-toggle" href="#" id="plot_frame-toggle" onclick="return toggle('plot_frame');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html">plot_frame</a><tt class="py-op">(</tt><tt class="py-base-class">wx</tt><tt class="py-op">.</tt><tt class="py-base-class">Frame</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="plot_frame-expanded"><a name="L860"></a><tt class="py-lineno"> 860</tt>  <tt class="py-line">    <tt class="py-docstring">"""wxFrame for interactive use of plot_canvas."""</tt> </tt>
<a name="L861"></a><tt class="py-lineno"> 861</tt>  <tt class="py-line">    <tt id="link-308" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.TITLE_FONT=Priithon.plt.wxplt.plot_frame-class.html#TITLE_FONT"><a title="Priithon.plt.wxplt.plot_frame.TITLE_FONT" class="py-name" href="#" onclick="return doclink('link-308', 'TITLE_FONT', 'link-308');">TITLE_FONT</a></tt> <tt class="py-op">=</tt> <tt class="py-number">210</tt> </tt>
<a name="L862"></a><tt class="py-lineno"> 862</tt>  <tt class="py-line">    <tt id="link-309" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.AXIS_FONT=Priithon.plt.wxplt.plot_frame-class.html#AXIS_FONT"><a title="Priithon.plt.wxplt.plot_frame.AXIS_FONT" class="py-name" href="#" onclick="return doclink('link-309', 'AXIS_FONT', 'link-309');">AXIS_FONT</a></tt> <tt class="py-op">=</tt> <tt class="py-number">211</tt> </tt>
<a name="L863"></a><tt class="py-lineno"> 863</tt>  <tt class="py-line">    <tt id="link-310" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.LABEL_FONT=Priithon.plt.wxplt.plot_frame-class.html#LABEL_FONT"><a title="Priithon.plt.wxplt.plot_frame.LABEL_FONT" class="py-name" href="#" onclick="return doclink('link-310', 'LABEL_FONT', 'link-310');">LABEL_FONT</a></tt> <tt class="py-op">=</tt> <tt class="py-number">212</tt> </tt>
<a name="L864"></a><tt class="py-lineno"> 864</tt>  <tt class="py-line">     </tt>
<a name="L865"></a><tt class="py-lineno"> 865</tt>  <tt class="py-line">    <tt id="link-311" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.TITLE_TEXT=Priithon.plt.wxplt.plot_frame-class.html#TITLE_TEXT"><a title="Priithon.plt.wxplt.plot_frame.TITLE_TEXT" class="py-name" href="#" onclick="return doclink('link-311', 'TITLE_TEXT', 'link-311');">TITLE_TEXT</a></tt><tt class="py-op">,</tt><tt id="link-312" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.X_TEXT=Priithon.plt.wxplt.plot_frame-class.html#X_TEXT"><a title="Priithon.plt.wxplt.plot_frame.X_TEXT" class="py-name" href="#" onclick="return doclink('link-312', 'X_TEXT', 'link-312');">X_TEXT</a></tt><tt class="py-op">,</tt><tt id="link-313" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.Y_TEXT=Priithon.plt.wxplt.plot_frame-class.html#Y_TEXT"><a title="Priithon.plt.wxplt.plot_frame.Y_TEXT" class="py-name" href="#" onclick="return doclink('link-313', 'Y_TEXT', 'link-313');">Y_TEXT</a></tt> <tt class="py-op">=</tt> <tt class="py-number">220</tt><tt class="py-op">,</tt><tt class="py-number">221</tt><tt class="py-op">,</tt><tt class="py-number">222</tt> </tt>
<a name="L866"></a><tt class="py-lineno"> 866</tt>  <tt class="py-line"> </tt>
<a name="L867"></a><tt class="py-lineno"> 867</tt>  <tt class="py-line">    <tt id="link-314" class="py-name" targets="Variable Priithon.plt.wxplt.plot_frame.default_size=Priithon.plt.wxplt.plot_frame-class.html#default_size"><a title="Priithon.plt.wxplt.plot_frame.default_size" class="py-name" href="#" onclick="return doclink('link-314', 'default_size', 'link-314');">default_size</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">500</tt><tt class="py-op">,</tt><tt class="py-number">400</tt><tt class="py-op">)</tt> <tt class="py-comment"># the default on Linux is always tiny???</tt> </tt>
<a name="L868"></a><tt class="py-lineno"> 868</tt>  <tt class="py-line">     </tt>
<a name="plot_frame.__init__"></a><div id="plot_frame.__init__-def"><a name="L869"></a><tt class="py-lineno"> 869</tt> <a class="py-toggle" href="#" id="plot_frame.__init__-toggle" onclick="return toggle('plot_frame.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">id</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-param">title</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt><tt class="py-op">,</tt>  </tt>
<a name="L870"></a><tt class="py-lineno"> 870</tt>  <tt class="py-line">                 <tt class="py-param">pos</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">DefaultPosition</tt><tt class="py-op">,</tt> </tt>
<a name="L871"></a><tt class="py-lineno"> 871</tt>  <tt class="py-line">                 <tt class="py-param">size</tt><tt class="py-op">=</tt><tt id="link-315" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.default_size" class="py-name" href="#" onclick="return doclink('link-315', 'default_size', 'link-314');">default_size</a></tt><tt class="py-op">,</tt><tt class="py-param">visible</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.__init__-expanded"><a name="L872"></a><tt class="py-lineno"> 872</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt id="link-316" class="py-name" targets="Class Priithon.py.frame.Frame=Priithon.py.frame.Frame-class.html"><a title="Priithon.py.frame.Frame" class="py-name" href="#" onclick="return doclink('link-316', 'Frame', 'link-316');">Frame</a></tt><tt class="py-op">.</tt><tt id="link-317" class="py-name"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-317', '__init__', 'link-11');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-318" class="py-name"><a title="Priithon.py.buffer.Buffer.id" class="py-name" href="#" onclick="return doclink('link-318', 'id', 'link-12');">id</a></tt><tt class="py-op">,</tt> <tt id="link-319" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-319', 'title', 'link-17');">title</a></tt><tt class="py-op">,</tt><tt class="py-name">pos</tt><tt class="py-op">,</tt><tt id="link-320" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-320', 'size', 'link-13');">size</a></tt><tt class="py-op">)</tt> </tt>
<a name="L873"></a><tt class="py-lineno"> 873</tt>  <tt class="py-line">        <tt class="py-comment"># seb-20040824 wx.EVT_CLOSE(self, self.OnCloseWindow) #added by BEC</tt> </tt>
<a name="L874"></a><tt class="py-lineno"> 874</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># Now Create the menu bar and items</tt> </tt>
<a name="L875"></a><tt class="py-lineno"> 875</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mainmenu</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MenuBar</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L876"></a><tt class="py-lineno"> 876</tt>  <tt class="py-line">        <tt class="py-name">menu</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Menu</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L877"></a><tt class="py-lineno"> 877</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">200</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Save as Image...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Save plot to image file'</tt><tt class="py-op">)</tt> </tt>
<a name="L878"></a><tt class="py-lineno"> 878</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">200</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-321" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_save_as()=Priithon.plt.wxplt.plot_frame-class.html#file_save_as"><a title="Priithon.plt.wxplt.plot_frame.file_save_as" class="py-name" href="#" onclick="return doclink('link-321', 'file_save_as', 'link-321');">file_save_as</a></tt><tt class="py-op">)</tt> </tt>
<a name="L879"></a><tt class="py-lineno"> 879</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">202</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Save as CSV (column order)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Save plot to CSV text file - tab separated, each dataset goes into two(x,y) columns'</tt><tt class="py-op">)</tt> </tt>
<a name="L880"></a><tt class="py-lineno"> 880</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">202</tt><tt class="py-op">,</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">ev</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-322" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_save_csv()=Priithon.plt.wxplt.plot_frame-class.html#file_save_csv"><a title="Priithon.plt.wxplt.plot_frame.file_save_csv" class="py-name" href="#" onclick="return doclink('link-322', 'file_save_csv', 'link-322');">file_save_csv</a></tt><tt class="py-op">(</tt><tt class="py-name">ev</tt><tt class="py-op">,</tt> <tt id="link-323" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-323', 'transpose', 'link-99');">transpose</a></tt><tt class="py-op">=</tt><tt id="link-324" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-324', 'True', 'link-98');">True</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L881"></a><tt class="py-lineno"> 881</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">201</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Save as CSV (row order)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Save plot to CSV text file - tab separated, each dataset goes into two (x,y) rows'</tt><tt class="py-op">)</tt> </tt>
<a name="L882"></a><tt class="py-lineno"> 882</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">201</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-325" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.file_save_csv" class="py-name" href="#" onclick="return doclink('link-325', 'file_save_csv', 'link-322');">file_save_csv</a></tt><tt class="py-op">)</tt> </tt>
<a name="L883"></a><tt class="py-lineno"> 883</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">208</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Save as CSV (column order, merge to one X col)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Save plot to CSV text file - tab separated, each line as (x,y1,y2,y3)'</tt><tt class="py-op">)</tt> </tt>
<a name="L884"></a><tt class="py-lineno"> 884</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">208</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-326" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_save_csv_singleXcolumn()=Priithon.plt.wxplt.plot_frame-class.html#file_save_csv_singleXcolumn"><a title="Priithon.plt.wxplt.plot_frame.file_save_csv_singleXcolumn" class="py-name" href="#" onclick="return doclink('link-326', 'file_save_csv_singleXcolumn', 'link-326');">file_save_csv_singleXcolumn</a></tt><tt class="py-op">)</tt> </tt>
<a name="L885"></a><tt class="py-lineno"> 885</tt>  <tt class="py-line"> </tt>
<a name="L886"></a><tt class="py-lineno"> 886</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">207</tt><tt class="py-op">,</tt> <tt class="py-string">'Copy CSV to clipboard (column order)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Copy CSV into clipboard - tab separated, each dataset goes into two(x,y) columns'</tt><tt class="py-op">)</tt> </tt>
<a name="L887"></a><tt class="py-lineno"> 887</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">207</tt><tt class="py-op">,</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">ev</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-327" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_copy_csv()=Priithon.plt.wxplt.plot_frame-class.html#file_copy_csv"><a title="Priithon.plt.wxplt.plot_frame.file_copy_csv" class="py-name" href="#" onclick="return doclink('link-327', 'file_copy_csv', 'link-327');">file_copy_csv</a></tt><tt class="py-op">(</tt><tt class="py-name">ev</tt><tt class="py-op">,</tt> <tt id="link-328" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-328', 'transpose', 'link-99');">transpose</a></tt><tt class="py-op">=</tt><tt id="link-329" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-329', 'True', 'link-98');">True</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L888"></a><tt class="py-lineno"> 888</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">206</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Copy CSV to clipboard (row order)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Copy CSV into clipboard - tab separated, each dataset goes into two (x,y) rows'</tt><tt class="py-op">)</tt> </tt>
<a name="L889"></a><tt class="py-lineno"> 889</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">206</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-330" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.file_copy_csv" class="py-name" href="#" onclick="return doclink('link-330', 'file_copy_csv', 'link-327');">file_copy_csv</a></tt><tt class="py-op">)</tt> </tt>
<a name="L890"></a><tt class="py-lineno"> 890</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">209</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Copy CSV (column order, merge to one X col)...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Copy plot to CSV into clipboard - tab separated, each line as (x,y1,y2,y3)'</tt><tt class="py-op">)</tt> </tt>
<a name="L891"></a><tt class="py-lineno"> 891</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">209</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-331" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_copy_csv_singleXcolumn()=Priithon.plt.wxplt.plot_frame-class.html#file_copy_csv_singleXcolumn"><a title="Priithon.plt.wxplt.plot_frame.file_copy_csv_singleXcolumn" class="py-name" href="#" onclick="return doclink('link-331', 'file_copy_csv_singleXcolumn', 'link-331');">file_copy_csv_singleXcolumn</a></tt><tt class="py-op">)</tt> </tt>
<a name="L892"></a><tt class="py-lineno"> 892</tt>  <tt class="py-line"> </tt>
<a name="L893"></a><tt class="py-lineno"> 893</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">203</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Print...'</tt><tt class="py-op">,</tt> <tt class="py-string">'Print the current plot'</tt><tt class="py-op">)</tt> </tt>
<a name="L894"></a><tt class="py-lineno"> 894</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">203</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-332" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_print()=Priithon.plt.wxplt.plot_frame-class.html#file_print"><a title="Priithon.plt.wxplt.plot_frame.file_print" class="py-name" href="#" onclick="return doclink('link-332', 'file_print', 'link-332');">file_print</a></tt><tt class="py-op">)</tt> </tt>
<a name="L895"></a><tt class="py-lineno"> 895</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">204</tt><tt class="py-op">,</tt> <tt class="py-string">'Print Pre&amp;view'</tt><tt class="py-op">,</tt> <tt class="py-string">'Preview the current plot'</tt><tt class="py-op">)</tt> </tt>
<a name="L896"></a><tt class="py-lineno"> 896</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">204</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-333" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_preview()=Priithon.plt.wxplt.plot_frame-class.html#file_preview"><a title="Priithon.plt.wxplt.plot_frame.file_preview" class="py-name" href="#" onclick="return doclink('link-333', 'file_preview', 'link-333');">file_preview</a></tt><tt class="py-op">)</tt> </tt>
<a name="L897"></a><tt class="py-lineno"> 897</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-number">205</tt><tt class="py-op">,</tt> <tt class="py-string">'Close\tCtrl-W'</tt><tt class="py-op">,</tt> <tt class="py-string">'Close plot'</tt><tt class="py-op">)</tt> </tt>
<a name="L898"></a><tt class="py-lineno"> 898</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-number">205</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-334" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.file_close()=Priithon.plt.wxplt.plot_frame-class.html#file_close"><a title="Priithon.plt.wxplt.plot_frame.file_close" class="py-name" href="#" onclick="return doclink('link-334', 'file_close', 'link-334');">file_close</a></tt><tt class="py-op">)</tt> </tt>
<a name="L899"></a><tt class="py-lineno"> 899</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mainmenu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-name">menu</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;File'</tt><tt class="py-op">)</tt> </tt>
<a name="L900"></a><tt class="py-lineno"> 900</tt>  <tt class="py-line">        <tt class="py-name">menu</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Menu</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L901"></a><tt class="py-lineno"> 901</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-335" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.TITLE_TEXT" class="py-name" href="#" onclick="return doclink('link-335', 'TITLE_TEXT', 'link-311');">TITLE_TEXT</a></tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Graph Title'</tt><tt class="py-op">,</tt> <tt class="py-string">'Title for plot'</tt><tt class="py-op">)</tt> </tt>
<a name="L902"></a><tt class="py-lineno"> 902</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-336" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.TITLE_TEXT" class="py-name" href="#" onclick="return doclink('link-336', 'TITLE_TEXT', 'link-311');">TITLE_TEXT</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-337" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-337', 'title', 'link-17');">title</a></tt><tt class="py-op">)</tt> </tt>
<a name="L903"></a><tt class="py-lineno"> 903</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-338" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.X_TEXT" class="py-name" href="#" onclick="return doclink('link-338', 'X_TEXT', 'link-312');">X_TEXT</a></tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;X Title'</tt><tt class="py-op">,</tt> <tt class="py-string">'Title for X axis'</tt><tt class="py-op">)</tt> </tt>
<a name="L904"></a><tt class="py-lineno"> 904</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-339" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.X_TEXT" class="py-name" href="#" onclick="return doclink('link-339', 'X_TEXT', 'link-312');">X_TEXT</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-340" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-340', 'title', 'link-17');">title</a></tt><tt class="py-op">)</tt> </tt>
<a name="L905"></a><tt class="py-lineno"> 905</tt>  <tt class="py-line">        <tt class="py-name">menu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-341" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.Y_TEXT" class="py-name" href="#" onclick="return doclink('link-341', 'Y_TEXT', 'link-313');">Y_TEXT</a></tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Y Title'</tt><tt class="py-op">,</tt> <tt class="py-string">'Title for Y axis'</tt><tt class="py-op">)</tt> </tt>
<a name="L906"></a><tt class="py-lineno"> 906</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-342" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.Y_TEXT" class="py-name" href="#" onclick="return doclink('link-342', 'Y_TEXT', 'link-313');">Y_TEXT</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-343" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-343', 'title', 'link-17');">title</a></tt><tt class="py-op">)</tt> </tt>
<a name="L907"></a><tt class="py-lineno"> 907</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mainmenu</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt class="py-name">menu</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Titles'</tt><tt class="py-op">)</tt> </tt>
<a name="L908"></a><tt class="py-lineno"> 908</tt>  <tt class="py-line">        <tt class="py-comment">#menu = wx.Menu()        </tt> </tt>
<a name="L909"></a><tt class="py-lineno"> 909</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#menu.Append(300, '&amp;Profile', 'Check the hot spots in the program')</tt> </tt>
<a name="L910"></a><tt class="py-lineno"> 910</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#wx.EVT_MENU(self,300,self.OnProfile)</tt> </tt>
<a name="L911"></a><tt class="py-lineno"> 911</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.mainmenu.Append(menu, '&amp;Utility')</tt> </tt>
<a name="L912"></a><tt class="py-lineno"> 912</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SetMenuBar</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mainmenu</tt><tt class="py-op">)</tt> </tt>
<a name="L913"></a><tt class="py-lineno"> 913</tt>  <tt class="py-line">        <tt class="py-comment"># A status bar to tell people what's happening</tt> </tt>
<a name="L914"></a><tt class="py-lineno"> 914</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">CreateStatusBar</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L915"></a><tt class="py-lineno"> 915</tt>  <tt class="py-line">        <tt class="py-comment">#20100928 self.print_data = wx.PrintData()</tt> </tt>
<a name="L916"></a><tt class="py-lineno"> 916</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment">#20100928: before was apparently inspired by http://wiki.wxpython.org/Printing</tt> </tt>
<a name="L917"></a><tt class="py-lineno"> 917</tt>  <tt class="py-line">        <tt class="py-comment">#20100928 self.print_data.SetPaperId(wx.PAPER_LETTER)</tt> </tt>
<a name="L918"></a><tt class="py-lineno"> 918</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt> <tt class="py-op">=</tt> <tt id="link-344" class="py-name" targets="Class Priithon.plt.wxplt.plot_canvas=Priithon.plt.wxplt.plot_canvas-class.html"><a title="Priithon.plt.wxplt.plot_canvas" class="py-name" href="#" onclick="return doclink('link-344', 'plot_canvas', 'link-344');">plot_canvas</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L919"></a><tt class="py-lineno"> 919</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">visible</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">Show</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L920"></a><tt class="py-lineno"> 920</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">Raise</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L921"></a><tt class="py-lineno"> 921</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-345" class="py-name" targets="Method Priithon.py.editor.EditorShellNotebook.SetFocus()=Priithon.py.editor.EditorShellNotebook-class.html#SetFocus"><a title="Priithon.py.editor.EditorShellNotebook.SetFocus" class="py-name" href="#" onclick="return doclink('link-345', 'SetFocus', 'link-345');">SetFocus</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L922"></a><tt class="py-lineno"> 922</tt>  <tt class="py-line">                     </tt>
<a name="plot_frame.plot_draw"></a><div id="plot_frame.plot_draw-def"><a name="L923"></a><tt class="py-lineno"> 923</tt> <a class="py-toggle" href="#" id="plot_frame.plot_draw-toggle" onclick="return toggle('plot_frame.plot_draw');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#plot_draw">plot_draw</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.plot_draw-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.plot_draw-expanded"><a name="L924"></a><tt class="py-lineno"> 924</tt>  <tt class="py-line">        <tt class="py-comment">#self.client.graphics = _InitObjects()</tt> </tt>
<a name="L925"></a><tt class="py-lineno"> 925</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-346" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-346', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'Bubba'</tt> </tt>
<a name="L926"></a><tt class="py-lineno"> 926</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'x title'</tt> </tt>
<a name="L927"></a><tt class="py-lineno"> 927</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'y title'</tt> </tt>
<a name="L928"></a><tt class="py-lineno"> 928</tt>  <tt class="py-line">        <tt class="py-comment">#self.client.y2_title.text = 'y2 title'</tt> </tt>
<a name="L929"></a><tt class="py-lineno"> 929</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">for</tt> <tt id="link-347" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-347', 'i', 'link-3');">i</a></tt> <tt class="py-keyword">in</tt> <tt id="link-348" class="py-name" targets="Function Priithon.plt.wxplt._InitObjects()=Priithon.plt.wxplt-module.html#_InitObjects"><a title="Priithon.plt.wxplt._InitObjects" class="py-name" href="#" onclick="return doclink('link-348', '_InitObjects', 'link-348');">_InitObjects</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L930"></a><tt class="py-lineno"> 930</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-349" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-349', 'i', 'link-3');">i</a></tt><tt class="py-op">)</tt> </tt>
<a name="L931"></a><tt class="py-lineno"> 931</tt>  <tt class="py-line">        <tt class="py-comment">#self.client.image_list.append(lena_obj())    </tt> </tt>
<a name="L932"></a><tt class="py-lineno"> 932</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-350" class="py-name"><a title="Priithon.plt.plot_objects.auto_line_list.draw
Priithon.plt.plot_objects.axis_object.draw
Priithon.plt.plot_objects.border_object.draw
Priithon.plt.plot_objects.graphic_list.draw
Priithon.plt.plot_objects.image_object.draw
Priithon.plt.plot_objects.legend_object.draw
Priithon.plt.plot_objects.line_object.draw
Priithon.plt.plot_objects.poly_line.draw
Priithon.plt.plot_objects.poly_marker.draw
Priithon.plt.plot_objects.text_object.draw
Priithon.plt.wxplt.plot_canvas.draw
Priithon.wxPyPlot.PlotGraphics.draw
Priithon.wxPyPlot.PolyLine.draw
Priithon.wxPyPlot.PolyMarker.draw" class="py-name" href="#" onclick="return doclink('link-350', 'draw', 'link-48');">draw</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
</div><a name="L933"></a><tt class="py-lineno"> 933</tt>  <tt class="py-line"> </tt>
<a name="L934"></a><tt class="py-lineno"> 934</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.profile"></a><div id="plot_frame.profile-def"><a name="L935"></a><tt class="py-lineno"> 935</tt> <a class="py-toggle" href="#" id="plot_frame.profile-toggle" onclick="return toggle('plot_frame.profile');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#profile">profile</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.profile-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.profile-expanded"><a name="L936"></a><tt class="py-lineno"> 936</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt id="link-351" class="py-name" targets="Method Priithon.plt.wxplt.plot_frame.profile()=Priithon.plt.wxplt.plot_frame-class.html#profile"><a title="Priithon.plt.wxplt.plot_frame.profile" class="py-name" href="#" onclick="return doclink('link-351', 'profile', 'link-351');">profile</a></tt> </tt>
<a name="L937"></a><tt class="py-lineno"> 937</tt>  <tt class="py-line">        <tt class="py-comment">#self.client.graphics = _InitObjects()</tt> </tt>
<a name="L938"></a><tt class="py-lineno"> 938</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-352" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-352', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'Bubba'</tt> </tt>
<a name="L939"></a><tt class="py-lineno"> 939</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'x title'</tt> </tt>
<a name="L940"></a><tt class="py-lineno"> 940</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-string">'y title'</tt> </tt>
<a name="L941"></a><tt class="py-lineno"> 941</tt>  <tt class="py-line">        <tt class="py-comment">#self.client.y2_title.text = 'y2 title'</tt> </tt>
<a name="L942"></a><tt class="py-lineno"> 942</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#for i in _InitObjects():</tt> </tt>
<a name="L943"></a><tt class="py-lineno"> 943</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    self.client.line_list.append(i)</tt> </tt>
<a name="L944"></a><tt class="py-lineno"> 944</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#self.client.image_list.append(lena_obj())    </tt> </tt>
<a name="L945"></a><tt class="py-lineno"> 945</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">global</tt> <tt class="py-name">bub</tt> </tt>
<a name="L946"></a><tt class="py-lineno"> 946</tt>  <tt class="py-line">        <tt class="py-name">bub</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
<a name="L947"></a><tt class="py-lineno"> 947</tt>  <tt class="py-line">        <tt id="link-353" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.profile" class="py-name" href="#" onclick="return doclink('link-353', 'profile', 'link-351');">profile</a></tt><tt class="py-op">.</tt><tt id="link-354" class="py-name" targets="Method Priithon.py.shell.Shell.run()=Priithon.py.shell.Shell-class.html#run,Function Priithon.splitND.run()=Priithon.splitND-module.html#run,Function Priithon.splitND2.run()=Priithon.splitND2-module.html#run"><a title="Priithon.py.shell.Shell.run
Priithon.splitND.run
Priithon.splitND2.run" class="py-name" href="#" onclick="return doclink('link-354', 'run', 'link-354');">run</a></tt><tt class="py-op">(</tt><tt class="py-string">'from plt import loop;loop()'</tt><tt class="py-op">,</tt><tt class="py-string">'profile'</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L948"></a><tt class="py-lineno"> 948</tt>  <tt class="py-line">         </tt>
<a name="plot_frame.file_print"></a><div id="plot_frame.file_print-def"><a name="L949"></a><tt class="py-lineno"> 949</tt> <a class="py-toggle" href="#" id="plot_frame.file_print-toggle" onclick="return toggle('plot_frame.file_print');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_print">file_print</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_print-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_print-expanded"><a name="L950"></a><tt class="py-lineno"> 950</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L951"></a><tt class="py-lineno"> 951</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">PrintData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L952"></a><tt class="py-lineno"> 952</tt>  <tt class="py-line">        <tt class="py-comment">#20100928 self.print_data.SetPaperId(wx.PAPER_LETTER)</tt> </tt>
<a name="L953"></a><tt class="py-lineno"> 953</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">pdd</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">PrintDialogData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L954"></a><tt class="py-lineno"> 954</tt>  <tt class="py-line">        <tt class="py-name">pdd</tt><tt class="py-op">.</tt><tt class="py-name">SetPrintData</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt><tt class="py-op">)</tt> </tt>
<a name="L955"></a><tt class="py-lineno"> 955</tt>  <tt class="py-line">        <tt class="py-name">printer</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Printer</tt><tt class="py-op">(</tt><tt class="py-name">pdd</tt><tt class="py-op">)</tt> </tt>
<a name="L956"></a><tt class="py-lineno"> 956</tt>  <tt class="py-line">        <tt class="py-name">printout</tt> <tt class="py-op">=</tt> <tt id="link-355" class="py-name" targets="Class Priithon.plt.wxplt.graph_printout=Priithon.plt.wxplt.graph_printout-class.html"><a title="Priithon.plt.wxplt.graph_printout" class="py-name" href="#" onclick="return doclink('link-355', 'graph_printout', 'link-355');">graph_printout</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">)</tt> </tt>
<a name="L957"></a><tt class="py-lineno"> 957</tt>  <tt class="py-line">        <tt class="py-name">print_ok</tt> <tt class="py-op">=</tt> <tt class="py-name">printer</tt><tt class="py-op">.</tt><tt class="py-name">Print</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">printout</tt><tt class="py-op">)</tt> </tt>
<a name="L958"></a><tt class="py-lineno"> 958</tt>  <tt class="py-line">        <tt class="py-comment">#Is Abort() not wrapped?</tt> </tt>
<a name="L959"></a><tt class="py-lineno"> 959</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#if not printer.Abort() and not print_ok:     </tt> </tt>
<a name="L960"></a><tt class="py-lineno"> 960</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    wx.MessageBox("There was a problem printing.\n" \</tt> </tt>
<a name="L961"></a><tt class="py-lineno"> 961</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#                    "Perhaps your current printer is not set correctly?",</tt> </tt>
<a name="L962"></a><tt class="py-lineno"> 962</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#                    "Printing", wx.OK)</tt> </tt>
<a name="L963"></a><tt class="py-lineno"> 963</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#else:</tt> </tt>
<a name="L964"></a><tt class="py-lineno"> 964</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#    self.print_data = printer.GetPrintDialogData().GetPrintData()</tt> </tt>
<a name="L965"></a><tt class="py-lineno"> 965</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">print_ok</tt><tt class="py-op">:</tt> </tt>
<a name="L966"></a><tt class="py-lineno"> 966</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-op">=</tt> <tt class="py-name">printer</tt><tt class="py-op">.</tt><tt class="py-name">GetPrintDialogData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">GetPrintData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L967"></a><tt class="py-lineno"> 967</tt>  <tt class="py-line">        <tt class="py-name">printout</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L968"></a><tt class="py-lineno"> 968</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_preview"></a><div id="plot_frame.file_preview-def"><a name="L969"></a><tt class="py-lineno"> 969</tt> <a class="py-toggle" href="#" id="plot_frame.file_preview-toggle" onclick="return toggle('plot_frame.file_preview');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_preview">file_preview</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_preview-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_preview-expanded"><a name="L970"></a><tt class="py-lineno"> 970</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L971"></a><tt class="py-lineno"> 971</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">PrintData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L972"></a><tt class="py-lineno"> 972</tt>  <tt class="py-line">        <tt class="py-name">printout</tt> <tt class="py-op">=</tt> <tt id="link-356" class="py-name"><a title="Priithon.plt.wxplt.graph_printout" class="py-name" href="#" onclick="return doclink('link-356', 'graph_printout', 'link-355');">graph_printout</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">)</tt> </tt>
<a name="L973"></a><tt class="py-lineno"> 973</tt>  <tt class="py-line">        <tt class="py-name">printout2</tt> <tt class="py-op">=</tt> <tt id="link-357" class="py-name"><a title="Priithon.plt.wxplt.graph_printout" class="py-name" href="#" onclick="return doclink('link-357', 'graph_printout', 'link-355');">graph_printout</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">)</tt> </tt>
<a name="L974"></a><tt class="py-lineno"> 974</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">preview</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt id="link-358" class="py-name" targets="Method Priithon.wxPyPlot.PlotCanvas.PrintPreview()=Priithon.wxPyPlot.PlotCanvas-class.html#PrintPreview"><a title="Priithon.wxPyPlot.PlotCanvas.PrintPreview" class="py-name" href="#" onclick="return doclink('link-358', 'PrintPreview', 'link-358');">PrintPreview</a></tt><tt class="py-op">(</tt><tt class="py-name">printout</tt><tt class="py-op">,</tt> <tt class="py-name">printout2</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">print_data</tt><tt class="py-op">)</tt> </tt>
<a name="L975"></a><tt class="py-lineno"> 975</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">preview</tt><tt class="py-op">.</tt><tt class="py-name">Ok</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L976"></a><tt class="py-lineno"> 976</tt>  <tt class="py-line">            <tt class="py-comment">#self.log.WriteText("Print Preview failed." \</tt> </tt>
<a name="L977"></a><tt class="py-lineno"> 977</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#                   "Check that default printer is configured\n")</tt> </tt>
<a name="L978"></a><tt class="py-lineno"> 978</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">print</tt> <tt class="py-string">"Print Preview failed."</tt> \ </tt>
<a name="L979"></a><tt class="py-lineno"> 979</tt>  <tt class="py-line">                  <tt class="py-string">"Check that default printer is configured\n"</tt> </tt>
<a name="L980"></a><tt class="py-lineno"> 980</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L981"></a><tt class="py-lineno"> 981</tt>  <tt class="py-line">        <tt id="link-359" class="py-name" targets="Module Priithon.py.frame=Priithon.py.frame-module.html"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-359', 'frame', 'link-359');">frame</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">PreviewFrame</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">preview</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"Preview"</tt><tt class="py-op">)</tt> </tt>
<a name="L982"></a><tt class="py-lineno"> 982</tt>  <tt class="py-line">        <tt id="link-360" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-360', 'frame', 'link-359');">frame</a></tt><tt class="py-op">.</tt><tt class="py-name">Initialize</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L983"></a><tt class="py-lineno"> 983</tt>  <tt class="py-line">        <tt id="link-361" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-361', 'frame', 'link-359');">frame</a></tt><tt class="py-op">.</tt><tt class="py-name">SetPosition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetPosition</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L984"></a><tt class="py-lineno"> 984</tt>  <tt class="py-line">        <tt id="link-362" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-362', 'frame', 'link-359');">frame</a></tt><tt class="py-op">.</tt><tt class="py-name">SetSize</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetSize</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L985"></a><tt class="py-lineno"> 985</tt>  <tt class="py-line">        <tt id="link-363" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-363', 'frame', 'link-359');">frame</a></tt><tt class="py-op">.</tt><tt class="py-name">Show</tt><tt class="py-op">(</tt><tt id="link-364" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-364', 'True', 'link-98');">True</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L986"></a><tt class="py-lineno"> 986</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_save_as"></a><div id="plot_frame.file_save_as-def"><a name="L987"></a><tt class="py-lineno"> 987</tt> <a class="py-toggle" href="#" id="plot_frame.file_save_as-toggle" onclick="return toggle('plot_frame.file_save_as');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_save_as">file_save_as</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_save_as-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_save_as-expanded"><a name="L988"></a><tt class="py-lineno"> 988</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L989"></a><tt class="py-lineno"> 989</tt>  <tt class="py-line">        <tt class="py-name">wildcard</tt> <tt class="py-op">=</tt> <tt class="py-string">"PNG files (*.png)|*.png|"</tt> \ </tt>
<a name="L990"></a><tt class="py-lineno"> 990</tt>  <tt class="py-line">                   <tt class="py-string">"BMP files (*.bmp)|*.bmp|"</tt> \ </tt>
<a name="L991"></a><tt class="py-lineno"> 991</tt>  <tt class="py-line">                   <tt class="py-string">"JPEG files (*.jpg)|*.jpg|"</tt> \ </tt>
<a name="L992"></a><tt class="py-lineno"> 992</tt>  <tt class="py-line">                   <tt class="py-string">"PCX files (*.pcx)|*.pcx|"</tt> \ </tt>
<a name="L993"></a><tt class="py-lineno"> 993</tt>  <tt class="py-line">                   <tt class="py-string">"TIFF files (*.tif)|*.tif|"</tt> \ </tt>
<a name="L994"></a><tt class="py-lineno"> 994</tt>  <tt class="py-line">                   <tt class="py-string">"All Files |*"</tt> </tt>
<a name="L995"></a><tt class="py-lineno"> 995</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FileDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"Save As Image"</tt><tt class="py-op">,</tt> <tt class="py-string">"."</tt><tt class="py-op">,</tt> <tt class="py-string">""</tt><tt class="py-op">,</tt> <tt class="py-name">wildcard</tt><tt class="py-op">,</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">SAVE</tt><tt class="py-op">)</tt> </tt>
<a name="L996"></a><tt class="py-lineno"> 996</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ID_OK</tt><tt class="py-op">:</tt> </tt>
<a name="L997"></a><tt class="py-lineno"> 997</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L998"></a><tt class="py-lineno"> 998</tt>  <tt class="py-line">            <tt class="py-name">dummy</tt><tt class="py-op">,</tt> <tt class="py-name">ftype</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">splitext</tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
<a name="L999"></a><tt class="py-lineno"> 999</tt>  <tt class="py-line">            <tt class="py-comment"># strip .</tt> </tt>
<a name="L1000"></a><tt class="py-lineno">1000</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">ftype</tt> <tt class="py-op">=</tt> <tt class="py-name">ftype</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L1001"></a><tt class="py-lineno">1001</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">ftype</tt> <tt class="py-keyword">in</tt> <tt id="link-365" class="py-name"><a title="Priithon.plt.plot_objects.image_type_map" class="py-name" href="#" onclick="return doclink('link-365', 'image_type_map', 'link-94');">image_type_map</a></tt><tt class="py-op">.</tt><tt id="link-366" class="py-name" targets="Method Priithon.plt.dumbdbm_patched._Database.keys()=Priithon.plt.dumbdbm_patched._Database-class.html#keys"><a title="Priithon.plt.dumbdbm_patched._Database.keys" class="py-name" href="#" onclick="return doclink('link-366', 'keys', 'link-366');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1002"></a><tt class="py-lineno">1002</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-367" class="py-name" targets="Function Priithon.Mrc.save()=Priithon.Mrc-module.html#save,Method Priithon.mmviewer.GLViewer.save()=Priithon.mmviewer.GLViewer-class.html#save,Function Priithon.plt.interface.save()=Priithon.plt.interface-module.html#save,Method Priithon.plt.wxplt.plot_canvas.save()=Priithon.plt.wxplt.plot_canvas-class.html#save,Method Priithon.py.buffer.Buffer.save()=Priithon.py.buffer.Buffer-class.html#save"><a title="Priithon.Mrc.save
Priithon.mmviewer.GLViewer.save
Priithon.plt.interface.save
Priithon.plt.wxplt.plot_canvas.save
Priithon.py.buffer.Buffer.save" class="py-name" href="#" onclick="return doclink('link-367', 'save', 'link-367');">save</a></tt><tt class="py-op">(</tt><tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">ftype</tt><tt class="py-op">)</tt> </tt>
<a name="L1003"></a><tt class="py-lineno">1003</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1004"></a><tt class="py-lineno">1004</tt>  <tt class="py-line">                <tt id="link-368" class="py-name" targets="Variable Priithon.wxPyPlot.msg=Priithon.wxPyPlot-module.html#msg"><a title="Priithon.wxPyPlot.msg" class="py-name" href="#" onclick="return doclink('link-368', 'msg', 'link-368');">msg</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"Extension is currently used to determine file type."</tt> \ </tt>
<a name="L1005"></a><tt class="py-lineno">1005</tt>  <tt class="py-line">                      <tt class="py-string">"'%s' is not a valid extension."</tt>  \ </tt>
<a name="L1006"></a><tt class="py-lineno">1006</tt>  <tt class="py-line">                      <tt class="py-string">"You may use one of the following extensions. %s"</tt> \ </tt>
<a name="L1007"></a><tt class="py-lineno">1007</tt>  <tt class="py-line">                          <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">ftype</tt><tt class="py-op">,</tt><tt id="link-369" class="py-name"><a title="Priithon.plt.plot_objects.image_type_map" class="py-name" href="#" onclick="return doclink('link-369', 'image_type_map', 'link-94');">image_type_map</a></tt><tt class="py-op">.</tt><tt id="link-370" class="py-name"><a title="Priithon.plt.dumbdbm_patched._Database.keys" class="py-name" href="#" onclick="return doclink('link-370', 'keys', 'link-366');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>    </tt>
<a name="L1008"></a><tt class="py-lineno">1008</tt>  <tt class="py-line">                <tt class="py-name">d</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt id="link-371" class="py-name"><a title="Priithon.wxPyPlot.msg" class="py-name" href="#" onclick="return doclink('link-371', 'msg', 'link-368');">msg</a></tt><tt class="py-op">,</tt><tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">OK</tt><tt class="py-op">)</tt> </tt>
<a name="L1009"></a><tt class="py-lineno">1009</tt>  <tt class="py-line">                <tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1010"></a><tt class="py-lineno">1010</tt>  <tt class="py-line">                <tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1011"></a><tt class="py-lineno">1011</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1012"></a><tt class="py-lineno">1012</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_copy_csv"></a><div id="plot_frame.file_copy_csv-def"><a name="L1013"></a><tt class="py-lineno">1013</tt> <a class="py-toggle" href="#" id="plot_frame.file_copy_csv-toggle" onclick="return toggle('plot_frame.file_copy_csv');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_copy_csv">file_copy_csv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">,</tt> <tt class="py-param">transpose</tt><tt class="py-op">=</tt><tt id="link-372" class="py-name"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-372', 'False', 'link-95');">False</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_copy_csv-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_copy_csv-expanded"><a name="L1014"></a><tt class="py-lineno">1014</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">StringIO</tt> </tt>
<a name="L1015"></a><tt class="py-lineno">1015</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-name">StringIO</tt><tt class="py-op">.</tt><tt class="py-name">StringIO</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1016"></a><tt class="py-lineno">1016</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-373" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.save_csv()=Priithon.plt.wxplt.plot_canvas-class.html#save_csv"><a title="Priithon.plt.wxplt.plot_canvas.save_csv" class="py-name" href="#" onclick="return doclink('link-373', 'save_csv', 'link-373');">save_csv</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt> <tt class="py-name">csv_sep</tt><tt class="py-op">,</tt> <tt id="link-374" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-374', 'transpose', 'link-99');">transpose</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1017"></a><tt class="py-lineno">1017</tt>  <tt class="py-line"> </tt>
<a name="L1018"></a><tt class="py-lineno">1018</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt id="link-375" class="py-name"><a title="Priithon" class="py-name" href="#" onclick="return doclink('link-375', 'Priithon', 'link-50');">Priithon</a></tt> <tt class="py-keyword">import</tt> <tt id="link-376" class="py-name" targets="Module Priithon.usefulX=Priithon.usefulX-module.html"><a title="Priithon.usefulX" class="py-name" href="#" onclick="return doclink('link-376', 'usefulX', 'link-376');">usefulX</a></tt> </tt>
<a name="L1019"></a><tt class="py-lineno">1019</tt>  <tt class="py-line">        <tt id="link-377" class="py-name"><a title="Priithon.usefulX" class="py-name" href="#" onclick="return doclink('link-377', 'usefulX', 'link-376');">usefulX</a></tt><tt class="py-op">.</tt><tt id="link-378" class="py-name" targets="Function Priithon.usefulX.clipboardSetText()=Priithon.usefulX-module.html#clipboardSetText"><a title="Priithon.usefulX.clipboardSetText" class="py-name" href="#" onclick="return doclink('link-378', 'clipboardSetText', 'link-378');">clipboardSetText</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">getvalue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1020"></a><tt class="py-lineno">1020</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_save_csv"></a><div id="plot_frame.file_save_csv-def"><a name="L1021"></a><tt class="py-lineno">1021</tt> <a class="py-toggle" href="#" id="plot_frame.file_save_csv-toggle" onclick="return toggle('plot_frame.file_save_csv');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_save_csv">file_save_csv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">,</tt> <tt class="py-param">transpose</tt><tt class="py-op">=</tt><tt id="link-379" class="py-name"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-379', 'False', 'link-95');">False</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_save_csv-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_save_csv-expanded"><a name="L1022"></a><tt class="py-lineno">1022</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L1023"></a><tt class="py-lineno">1023</tt>  <tt class="py-line">        <tt class="py-name">wildcard</tt> <tt class="py-op">=</tt> <tt class="py-string">"CSV files (*.csv)|*.csv|"</tt> \ </tt>
<a name="L1024"></a><tt class="py-lineno">1024</tt>  <tt class="py-line">                   <tt class="py-string">"TSV files (*.tsv)|*.tsv|"</tt> \ </tt>
<a name="L1025"></a><tt class="py-lineno">1025</tt>  <tt class="py-line">                   <tt class="py-string">"TXT files (*.txt)|*.txt|"</tt> \ </tt>
<a name="L1026"></a><tt class="py-lineno">1026</tt>  <tt class="py-line">                   <tt class="py-string">"All Files |*"</tt> </tt>
<a name="L1027"></a><tt class="py-lineno">1027</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FileDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"Save CSV As"</tt><tt class="py-op">,</tt> <tt class="py-string">"."</tt><tt class="py-op">,</tt> <tt class="py-string">""</tt><tt class="py-op">,</tt> <tt class="py-name">wildcard</tt><tt class="py-op">,</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">SAVE</tt><tt class="py-op">|</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FD_OVERWRITE_PROMPT</tt><tt class="py-op">)</tt> </tt>
<a name="L1028"></a><tt class="py-lineno">1028</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ID_OK</tt> <tt class="py-keyword">and</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1029"></a><tt class="py-lineno">1029</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-380" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.save_csv" class="py-name" href="#" onclick="return doclink('link-380', 'save_csv', 'link-373');">save_csv</a></tt><tt class="py-op">(</tt><tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">csv_sep</tt><tt class="py-op">,</tt> <tt id="link-381" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-381', 'transpose', 'link-99');">transpose</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1030"></a><tt class="py-lineno">1030</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1031"></a><tt class="py-lineno">1031</tt>  <tt class="py-line"> </tt>
<a name="L1032"></a><tt class="py-lineno">1032</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_copy_csv_singleXcolumn"></a><div id="plot_frame.file_copy_csv_singleXcolumn-def"><a name="L1033"></a><tt class="py-lineno">1033</tt> <a class="py-toggle" href="#" id="plot_frame.file_copy_csv_singleXcolumn-toggle" onclick="return toggle('plot_frame.file_copy_csv_singleXcolumn');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_copy_csv_singleXcolumn">file_copy_csv_singleXcolumn</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_copy_csv_singleXcolumn-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_copy_csv_singleXcolumn-expanded"><a name="L1034"></a><tt class="py-lineno">1034</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">StringIO</tt> </tt>
<a name="L1035"></a><tt class="py-lineno">1035</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-name">StringIO</tt><tt class="py-op">.</tt><tt class="py-name">StringIO</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1036"></a><tt class="py-lineno">1036</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-382" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.save_csv_singleXcolumn()=Priithon.plt.wxplt.plot_canvas-class.html#save_csv_singleXcolumn"><a title="Priithon.plt.wxplt.plot_canvas.save_csv_singleXcolumn" class="py-name" href="#" onclick="return doclink('link-382', 'save_csv_singleXcolumn', 'link-382');">save_csv_singleXcolumn</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt> <tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L1037"></a><tt class="py-lineno">1037</tt>  <tt class="py-line"> </tt>
<a name="L1038"></a><tt class="py-lineno">1038</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt id="link-383" class="py-name"><a title="Priithon" class="py-name" href="#" onclick="return doclink('link-383', 'Priithon', 'link-50');">Priithon</a></tt> <tt class="py-keyword">import</tt> <tt id="link-384" class="py-name"><a title="Priithon.usefulX" class="py-name" href="#" onclick="return doclink('link-384', 'usefulX', 'link-376');">usefulX</a></tt> </tt>
<a name="L1039"></a><tt class="py-lineno">1039</tt>  <tt class="py-line">        <tt id="link-385" class="py-name"><a title="Priithon.usefulX" class="py-name" href="#" onclick="return doclink('link-385', 'usefulX', 'link-376');">usefulX</a></tt><tt class="py-op">.</tt><tt id="link-386" class="py-name"><a title="Priithon.usefulX.clipboardSetText" class="py-name" href="#" onclick="return doclink('link-386', 'clipboardSetText', 'link-378');">clipboardSetText</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">getvalue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1040"></a><tt class="py-lineno">1040</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_save_csv_singleXcolumn"></a><div id="plot_frame.file_save_csv_singleXcolumn-def"><a name="L1041"></a><tt class="py-lineno">1041</tt> <a class="py-toggle" href="#" id="plot_frame.file_save_csv_singleXcolumn-toggle" onclick="return toggle('plot_frame.file_save_csv_singleXcolumn');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_save_csv_singleXcolumn">file_save_csv_singleXcolumn</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">,</tt> <tt class="py-param">csv_sep</tt><tt class="py-op">=</tt><tt class="py-string">'\t'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_save_csv_singleXcolumn-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_save_csv_singleXcolumn-expanded"><a name="L1042"></a><tt class="py-lineno">1042</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L1043"></a><tt class="py-lineno">1043</tt>  <tt class="py-line">        <tt class="py-name">wildcard</tt> <tt class="py-op">=</tt> <tt class="py-string">"CSV files (*.csv)|*.csv|"</tt> \ </tt>
<a name="L1044"></a><tt class="py-lineno">1044</tt>  <tt class="py-line">                   <tt class="py-string">"TSV files (*.tsv)|*.tsv|"</tt> \ </tt>
<a name="L1045"></a><tt class="py-lineno">1045</tt>  <tt class="py-line">                   <tt class="py-string">"TXT files (*.txt)|*.txt|"</tt> \ </tt>
<a name="L1046"></a><tt class="py-lineno">1046</tt>  <tt class="py-line">                   <tt class="py-string">"All Files |*"</tt> </tt>
<a name="L1047"></a><tt class="py-lineno">1047</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FileDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"Save single X column CSV As"</tt><tt class="py-op">,</tt> <tt class="py-string">"."</tt><tt class="py-op">,</tt> <tt class="py-string">""</tt><tt class="py-op">,</tt> <tt class="py-name">wildcard</tt><tt class="py-op">,</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">SAVE</tt><tt class="py-op">|</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FD_OVERWRITE_PROMPT</tt><tt class="py-op">)</tt> </tt>
<a name="L1048"></a><tt class="py-lineno">1048</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ID_OK</tt> <tt class="py-keyword">and</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1049"></a><tt class="py-lineno">1049</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-387" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.save_csv_singleXcolumn" class="py-name" href="#" onclick="return doclink('link-387', 'save_csv_singleXcolumn', 'link-382');">save_csv_singleXcolumn</a></tt><tt class="py-op">(</tt><tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">csv_sep</tt><tt class="py-op">)</tt> </tt>
<a name="L1050"></a><tt class="py-lineno">1050</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1051"></a><tt class="py-lineno">1051</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.file_close"></a><div id="plot_frame.file_close-def"><a name="L1052"></a><tt class="py-lineno">1052</tt> <a class="py-toggle" href="#" id="plot_frame.file_close-toggle" onclick="return toggle('plot_frame.file_close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#file_close">file_close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.file_close-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.file_close-expanded"><a name="L1053"></a><tt class="py-lineno">1053</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">Close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1054"></a><tt class="py-lineno">1054</tt>  <tt class="py-line"> </tt>
<a name="L1055"></a><tt class="py-lineno">1055</tt>  <tt class="py-line">    <tt class="py-comment"># seb-20040824#added by BEC. I don't know if this is the correct action for closing the plot window...bu it works.</tt> </tt>
<a name="L1056"></a><tt class="py-lineno">1056</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># seb-20040824def OnCloseWindow(self, event):</tt> </tt>
<a name="L1057"></a><tt class="py-lineno">1057</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># seb-20040824    self.Show(0)</tt> </tt>
<a name="L1058"></a><tt class="py-lineno">1058</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="plot_frame.format_font"></a><div id="plot_frame.format_font-def"><a name="L1059"></a><tt class="py-lineno">1059</tt> <a class="py-toggle" href="#" id="plot_frame.format_font-toggle" onclick="return toggle('plot_frame.format_font');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#format_font">format_font</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.format_font-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.format_font-expanded"><a name="L1060"></a><tt class="py-lineno">1060</tt>  <tt class="py-line">        <tt class="py-name">font_attr</tt><tt class="py-op">,</tt><tt class="py-name">color_attr</tt> <tt class="py-op">=</tt> <tt class="py-string">'font'</tt><tt class="py-op">,</tt><tt class="py-string">'color'</tt> </tt>
<a name="L1061"></a><tt class="py-lineno">1061</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-388" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.TITLE_FONT" class="py-name" href="#" onclick="return doclink('link-388', 'TITLE_FONT', 'link-308');">TITLE_FONT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1062"></a><tt class="py-lineno">1062</tt>  <tt class="py-line">            <tt class="py-name">texts</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-389" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-389', 'title', 'link-17');">title</a></tt><tt class="py-op">]</tt> </tt>
<a name="L1063"></a><tt class="py-lineno">1063</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-390" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.AXIS_FONT" class="py-name" href="#" onclick="return doclink('link-390', 'AXIS_FONT', 'link-309');">AXIS_FONT</a></tt><tt class="py-op">:</tt>             </tt>
<a name="L1064"></a><tt class="py-lineno">1064</tt>  <tt class="py-line">            <tt class="py-name">texts</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">]</tt> </tt>
<a name="L1065"></a><tt class="py-lineno">1065</tt>  <tt class="py-line">           <tt class="py-comment">#texts = [self.client.y_title]</tt> </tt>
<a name="L1066"></a><tt class="py-lineno">1066</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-391" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.LABEL_FONT" class="py-name" href="#" onclick="return doclink('link-391', 'LABEL_FONT', 'link-310');">LABEL_FONT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1067"></a><tt class="py-lineno">1067</tt>  <tt class="py-line">            <tt class="py-name">texts</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">]</tt> </tt>
<a name="L1068"></a><tt class="py-lineno">1068</tt>  <tt class="py-line">            <tt class="py-name">font_attr</tt><tt class="py-op">,</tt><tt class="py-name">color_attr</tt> <tt class="py-op">=</tt> <tt class="py-string">'label_font'</tt><tt class="py-op">,</tt><tt class="py-string">'label_color'</tt> </tt>
<a name="L1069"></a><tt class="py-lineno">1069</tt>  <tt class="py-line">        <tt id="link-392" class="py-name" targets="Variable Priithon.viewerRubberbandMode.viewerRubberbandMode.data=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#data"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-392', 'data', 'link-392');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FontData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1070"></a><tt class="py-lineno">1070</tt>  <tt class="py-line">        <tt class="py-name">current_color</tt> <tt class="py-op">=</tt> <tt id="link-393" class="py-name"><a title="Priithon.plt.plot_objects.get_color" class="py-name" href="#" onclick="return doclink('link-393', 'get_color', 'link-89');">get_color</a></tt><tt class="py-op">(</tt><tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">texts</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">color_attr</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1071"></a><tt class="py-lineno">1071</tt>  <tt class="py-line">        <tt class="py-name">current_font</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">texts</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">font_attr</tt><tt class="py-op">)</tt> </tt>
<a name="L1072"></a><tt class="py-lineno">1072</tt>  <tt class="py-line">        <tt id="link-394" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-394', 'data', 'link-392');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">SetColour</tt><tt class="py-op">(</tt><tt class="py-name">current_color</tt><tt class="py-op">)</tt> </tt>
<a name="L1073"></a><tt class="py-lineno">1073</tt>  <tt class="py-line">        <tt id="link-395" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-395', 'data', 'link-392');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">SetInitialFont</tt><tt class="py-op">(</tt><tt class="py-name">current_font</tt><tt class="py-op">)</tt> </tt>
<a name="L1074"></a><tt class="py-lineno">1074</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">FontDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-396" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-396', 'data', 'link-392');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1075"></a><tt class="py-lineno">1075</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ID_OK</tt><tt class="py-op">:</tt> </tt>
<a name="L1076"></a><tt class="py-lineno">1076</tt>  <tt class="py-line">            <tt id="link-397" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-397', 'data', 'link-392');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">GetFontData</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1077"></a><tt class="py-lineno">1077</tt>  <tt class="py-line">            <tt class="py-name">font</tt> <tt class="py-op">=</tt> <tt id="link-398" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-398', 'data', 'link-392');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">GetChosenFont</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1078"></a><tt class="py-lineno">1078</tt>  <tt class="py-line">            <tt class="py-name">color</tt> <tt class="py-op">=</tt> <tt id="link-399" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-399', 'data', 'link-392');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">GetColour</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1079"></a><tt class="py-lineno">1079</tt>  <tt class="py-line">            <tt class="py-name">rgb</tt> <tt class="py-op">=</tt> <tt class="py-name">color</tt><tt class="py-op">.</tt><tt class="py-name">Red</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">color</tt><tt class="py-op">.</tt><tt class="py-name">Green</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">color</tt><tt class="py-op">.</tt><tt class="py-name">Blue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1080"></a><tt class="py-lineno">1080</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">text</tt> <tt class="py-keyword">in</tt> <tt class="py-name">texts</tt><tt class="py-op">:</tt> </tt>
<a name="L1081"></a><tt class="py-lineno">1081</tt>  <tt class="py-line">                <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">text</tt><tt class="py-op">,</tt><tt class="py-name">color_attr</tt><tt class="py-op">,</tt><tt class="py-name">rgb</tt><tt class="py-op">)</tt> </tt>
<a name="L1082"></a><tt class="py-lineno">1082</tt>  <tt class="py-line">                <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">text</tt><tt class="py-op">,</tt><tt class="py-name">font_attr</tt><tt class="py-op">,</tt><tt class="py-name">font</tt><tt class="py-op">)</tt> </tt>
<a name="L1083"></a><tt class="py-lineno">1083</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-400" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-400', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1084"></a><tt class="py-lineno">1084</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1085"></a><tt class="py-lineno">1085</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.title"></a><div id="plot_frame.title-def"><a name="L1086"></a><tt class="py-lineno">1086</tt> <a class="py-toggle" href="#" id="plot_frame.title-toggle" onclick="return toggle('plot_frame.title');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#title">title</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.title-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.title-expanded"><a name="L1087"></a><tt class="py-lineno">1087</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-401" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.TITLE_TEXT" class="py-name" href="#" onclick="return doclink('link-401', 'TITLE_TEXT', 'link-311');">TITLE_TEXT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1088"></a><tt class="py-lineno">1088</tt>  <tt class="py-line">            <tt id="link-402" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-402', 'title', 'link-17');">title</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-403" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-403', 'title', 'link-17');">title</a></tt> </tt>
<a name="L1089"></a><tt class="py-lineno">1089</tt>  <tt class="py-line">            <tt id="link-404" class="py-name" targets="Method Priithon.py.shell.Shell.prompt()=Priithon.py.shell.Shell-class.html#prompt"><a title="Priithon.py.shell.Shell.prompt" class="py-name" href="#" onclick="return doclink('link-404', 'prompt', 'link-404');">prompt</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Enter graph title'</tt> </tt>
<a name="L1090"></a><tt class="py-lineno">1090</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-405" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.X_TEXT" class="py-name" href="#" onclick="return doclink('link-405', 'X_TEXT', 'link-312');">X_TEXT</a></tt><tt class="py-op">:</tt>             </tt>
<a name="L1091"></a><tt class="py-lineno">1091</tt>  <tt class="py-line">            <tt id="link-406" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-406', 'title', 'link-17');">title</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt> </tt>
<a name="L1092"></a><tt class="py-lineno">1092</tt>  <tt class="py-line">            <tt id="link-407" class="py-name"><a title="Priithon.py.shell.Shell.prompt" class="py-name" href="#" onclick="return doclink('link-407', 'prompt', 'link-404');">prompt</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Enter x axis title'</tt> </tt>
<a name="L1093"></a><tt class="py-lineno">1093</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">GetId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-408" class="py-name"><a title="Priithon.plt.wxplt.plot_frame.Y_TEXT" class="py-name" href="#" onclick="return doclink('link-408', 'Y_TEXT', 'link-313');">Y_TEXT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1094"></a><tt class="py-lineno">1094</tt>  <tt class="py-line">            <tt id="link-409" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-409', 'title', 'link-17');">title</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt> </tt>
<a name="L1095"></a><tt class="py-lineno">1095</tt>  <tt class="py-line">            <tt id="link-410" class="py-name"><a title="Priithon.py.shell.Shell.prompt" class="py-name" href="#" onclick="return doclink('link-410', 'prompt', 'link-404');">prompt</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Enter y axis title'</tt>         </tt>
<a name="L1096"></a><tt class="py-lineno">1096</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">TextEntryDialog</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-411" class="py-name"><a title="Priithon.py.shell.Shell.prompt" class="py-name" href="#" onclick="return doclink('link-411', 'prompt', 'link-404');">prompt</a></tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt id="link-412" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-412', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
<a name="L1097"></a><tt class="py-lineno">1097</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">ShowModal</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ID_OK</tt><tt class="py-op">:</tt> </tt>
<a name="L1098"></a><tt class="py-lineno">1098</tt>  <tt class="py-line">            <tt id="link-413" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-413', 'title', 'link-17');">title</a></tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt id="link-414" class="py-name" targets="Method Priithon.gridviewer.HugeTable.GetValue()=Priithon.gridviewer.HugeTable-class.html#GetValue"><a title="Priithon.gridviewer.HugeTable.GetValue" class="py-name" href="#" onclick="return doclink('link-414', 'GetValue', 'link-414');">GetValue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1099"></a><tt class="py-lineno">1099</tt>  <tt class="py-line">        <tt class="py-name">dlg</tt><tt class="py-op">.</tt><tt class="py-name">Destroy</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1100"></a><tt class="py-lineno">1100</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-415" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-415', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1101"></a><tt class="py-lineno">1101</tt>  <tt class="py-line"> </tt>
<a name="plot_frame.update"></a><div id="plot_frame.update-def"><a name="L1102"></a><tt class="py-lineno">1102</tt> <a class="py-toggle" href="#" id="plot_frame.update-toggle" onclick="return toggle('plot_frame.update');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#update">update</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.update-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.update-expanded"><a name="L1103"></a><tt class="py-lineno">1103</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-416" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-416', 'update', 'link-35');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1104"></a><tt class="py-lineno">1104</tt>  <tt class="py-line">             </tt>
<a name="plot_frame.__getattr__"></a><div id="plot_frame.__getattr__-def"><a name="L1105"></a><tt class="py-lineno">1105</tt> <a class="py-toggle" href="#" id="plot_frame.__getattr__-toggle" onclick="return toggle('plot_frame.__getattr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.plot_frame-class.html#__getattr__">__getattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_frame.__getattr__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="plot_frame.__getattr__-expanded"><a name="L1106"></a><tt class="py-lineno">1106</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt>         </tt>
<a name="L1107"></a><tt class="py-lineno">1107</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
<a name="L1108"></a><tt class="py-lineno">1108</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt>   </tt>
<a name="L1109"></a><tt class="py-lineno">1109</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-string">'client'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1110"></a><tt class="py-lineno">1110</tt>  <tt class="py-line">    <tt class="py-string">"""        </tt> </tt>
<a name="L1111"></a><tt class="py-lineno">1111</tt>  <tt class="py-line"><tt class="py-string">    def __setattr__(self,key,val):</tt> </tt>
<a name="L1112"></a><tt class="py-lineno">1112</tt>  <tt class="py-line"><tt class="py-string">        #print key,val</tt> </tt>
<a name="L1113"></a><tt class="py-lineno">1113</tt>  <tt class="py-line"><tt class="py-string">        #if plot_canvas._attributes.has_key(key):</tt> </tt>
<a name="L1114"></a><tt class="py-lineno">1114</tt>  <tt class="py-line"><tt class="py-string">        #    self.__dict__['client'].__dict__[key] = val</tt> </tt>
<a name="L1115"></a><tt class="py-lineno">1115</tt>  <tt class="py-line"><tt class="py-string">        #    return None</tt> </tt>
<a name="L1116"></a><tt class="py-lineno">1116</tt>  <tt class="py-line"><tt class="py-string">        self.__dict__[key] = val</tt> </tt>
<a name="L1117"></a><tt class="py-lineno">1117</tt>  <tt class="py-line"><tt class="py-string">    """</tt>     </tt>
</div><a name="L1118"></a><tt class="py-lineno">1118</tt>  <tt class="py-line"> </tt>
<a name="L1119"></a><tt class="py-lineno">1119</tt>  <tt class="py-line"> </tt>
<a name="L1120"></a><tt class="py-lineno">1120</tt>  <tt class="py-line"><tt class="py-comment"># global functions</tt> </tt>
<a name="L1121"></a><tt class="py-lineno">1121</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="lena_obj"></a><div id="lena_obj-def"><a name="L1122"></a><tt class="py-lineno">1122</tt> <a class="py-toggle" href="#" id="lena_obj-toggle" onclick="return toggle('lena_obj');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt-module.html#lena_obj">lena_obj</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="lena_obj-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="lena_obj-expanded"><a name="L1123"></a><tt class="py-lineno">1123</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">cPickle</tt> </tt>
<a name="L1124"></a><tt class="py-lineno">1124</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt id="link-417" class="py-name" targets="Module Priithon.plt.wxplt=Priithon.plt.wxplt-module.html"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-417', 'wxplt', 'link-417');">wxplt</a></tt><tt class="py-op">,</tt> <tt class="py-name">os</tt> </tt>
<a name="L1125"></a><tt class="py-lineno">1125</tt>  <tt class="py-line">    <tt class="py-name">d</tt><tt class="py-op">,</tt><tt class="py-name">junk</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">abspath</tt><tt class="py-op">(</tt><tt id="link-418" class="py-name"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-418', 'wxplt', 'link-417');">wxplt</a></tt><tt class="py-op">.</tt><tt class="py-name">__file__</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1126"></a><tt class="py-lineno">1126</tt>  <tt class="py-line">    <tt class="py-name">fname</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">,</tt><tt class="py-string">'lena.dat'</tt><tt class="py-op">)</tt> </tt>
<a name="L1127"></a><tt class="py-lineno">1127</tt>  <tt class="py-line">    <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt id="link-419" class="py-name"><a title="Priithon.Mrc.open
Priithon.plt.dumb_shelve.open
Priithon.plt.dumbdbm_patched.open
Priithon.py.buffer.Buffer.open" class="py-name" href="#" onclick="return doclink('link-419', 'open', 'link-97');">open</a></tt><tt class="py-op">(</tt><tt class="py-name">fname</tt><tt class="py-op">,</tt><tt class="py-string">'rb'</tt><tt class="py-op">)</tt> </tt>
<a name="L1128"></a><tt class="py-lineno">1128</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">cPickle</tt> </tt>
<a name="L1129"></a><tt class="py-lineno">1129</tt>  <tt class="py-line">    <tt id="link-420" class="py-name" targets="Function Priithon.plt.wxplt.lena()=Priithon.plt.wxplt-module.html#lena"><a title="Priithon.plt.wxplt.lena" class="py-name" href="#" onclick="return doclink('link-420', 'lena', 'link-420');">lena</a></tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-name">cPickle</tt><tt class="py-op">.</tt><tt id="link-421" class="py-name" targets="Function Priithon.Mrc.load()=Priithon.Mrc-module.html#load,Method Priithon.mmviewer.GLViewer.load()=Priithon.mmviewer.GLViewer-class.html#load,Function Priithon.readerSPE.load()=Priithon.readerSPE-module.html#load,Function Priithon.useful.load()=Priithon.useful-module.html#load,Function Priithon.usefulX.load()=Priithon.usefulX-module.html#load"><a title="Priithon.Mrc.load
Priithon.mmviewer.GLViewer.load
Priithon.readerSPE.load
Priithon.useful.load
Priithon.usefulX.load" class="py-name" href="#" onclick="return doclink('link-421', 'load', 'link-421');">load</a></tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1130"></a><tt class="py-lineno">1130</tt>  <tt class="py-line">    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-422" class="py-name"><a title="Priithon.Mrc.Mrc.close
Priithon.Mrc.Mrc2.close
Priithon.Scientific_IO_TextFile.TextFile.close
Priithon.plt.dumbdbm_patched._Database.close
Priithon.plt.interface.close
Priithon.readerSPE.File.close" class="py-name" href="#" onclick="return doclink('link-422', 'close', 'link-112');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1131"></a><tt class="py-lineno">1131</tt>  <tt class="py-line">    <tt class="py-comment">#x_bounds = array((0.,1))</tt> </tt>
<a name="L1132"></a><tt class="py-lineno">1132</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#y_bounds = array((0.,1))</tt> </tt>
<a name="L1133"></a><tt class="py-lineno">1133</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#return image_object(lena,x_bounds,y_bounds,colormap='grey')</tt> </tt>
<a name="L1134"></a><tt class="py-lineno">1134</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">return</tt> <tt id="link-423" class="py-name" targets="Class Priithon.plt.plot_objects.image_object=Priithon.plt.plot_objects.image_object-class.html"><a title="Priithon.plt.plot_objects.image_object" class="py-name" href="#" onclick="return doclink('link-423', 'image_object', 'link-423');">image_object</a></tt><tt class="py-op">(</tt><tt id="link-424" class="py-name"><a title="Priithon.plt.wxplt.lena" class="py-name" href="#" onclick="return doclink('link-424', 'lena', 'link-420');">lena</a></tt><tt class="py-op">,</tt><tt id="link-425" class="py-name" targets="Module Priithon.plt.colormap=Priithon.plt.colormap-module.html"><a title="Priithon.plt.colormap" class="py-name" href="#" onclick="return doclink('link-425', 'colormap', 'link-425');">colormap</a></tt><tt class="py-op">=</tt><tt class="py-string">'grey'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1135"></a><tt class="py-lineno">1135</tt>  <tt class="py-line"> </tt>
<a name="lena"></a><div id="lena-def"><a name="L1136"></a><tt class="py-lineno">1136</tt> <a class="py-toggle" href="#" id="lena-toggle" onclick="return toggle('lena');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt-module.html#lena">lena</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="lena-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="lena-expanded"><a name="L1137"></a><tt class="py-lineno">1137</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">cPickle</tt> </tt>
<a name="L1138"></a><tt class="py-lineno">1138</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt id="link-426" class="py-name"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-426', 'wxplt', 'link-417');">wxplt</a></tt><tt class="py-op">,</tt> <tt class="py-name">os</tt> </tt>
<a name="L1139"></a><tt class="py-lineno">1139</tt>  <tt class="py-line">    <tt class="py-name">d</tt><tt class="py-op">,</tt><tt class="py-name">junk</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">abspath</tt><tt class="py-op">(</tt><tt id="link-427" class="py-name"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-427', 'wxplt', 'link-417');">wxplt</a></tt><tt class="py-op">.</tt><tt class="py-name">__file__</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1140"></a><tt class="py-lineno">1140</tt>  <tt class="py-line">    <tt class="py-name">fname</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">,</tt><tt class="py-string">'lena.dat'</tt><tt class="py-op">)</tt> </tt>
<a name="L1141"></a><tt class="py-lineno">1141</tt>  <tt class="py-line">    <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt id="link-428" class="py-name"><a title="Priithon.Mrc.open
Priithon.plt.dumb_shelve.open
Priithon.plt.dumbdbm_patched.open
Priithon.py.buffer.Buffer.open" class="py-name" href="#" onclick="return doclink('link-428', 'open', 'link-97');">open</a></tt><tt class="py-op">(</tt><tt class="py-name">fname</tt><tt class="py-op">,</tt><tt class="py-string">'rb'</tt><tt class="py-op">)</tt> </tt>
<a name="L1142"></a><tt class="py-lineno">1142</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">cPickle</tt> </tt>
<a name="L1143"></a><tt class="py-lineno">1143</tt>  <tt class="py-line">    <tt id="link-429" class="py-name"><a title="Priithon.plt.wxplt.lena" class="py-name" href="#" onclick="return doclink('link-429', 'lena', 'link-420');">lena</a></tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-name">cPickle</tt><tt class="py-op">.</tt><tt id="link-430" class="py-name"><a title="Priithon.Mrc.load
Priithon.mmviewer.GLViewer.load
Priithon.readerSPE.load
Priithon.useful.load
Priithon.usefulX.load" class="py-name" href="#" onclick="return doclink('link-430', 'load', 'link-421');">load</a></tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1144"></a><tt class="py-lineno">1144</tt>  <tt class="py-line">    <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-431" class="py-name"><a title="Priithon.Mrc.Mrc.close
Priithon.Mrc.Mrc2.close
Priithon.Scientific_IO_TextFile.TextFile.close
Priithon.plt.dumbdbm_patched._Database.close
Priithon.plt.interface.close
Priithon.readerSPE.File.close" class="py-name" href="#" onclick="return doclink('link-431', 'close', 'link-112');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1145"></a><tt class="py-lineno">1145</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-432" class="py-name"><a title="Priithon.plt.wxplt.lena" class="py-name" href="#" onclick="return doclink('link-432', 'lena', 'link-420');">lena</a></tt> </tt>
</div><a name="L1146"></a><tt class="py-lineno">1146</tt>  <tt class="py-line"> </tt>
<a name="_InitObjects"></a><div id="_InitObjects-def"><a name="L1147"></a><tt class="py-lineno">1147</tt> <a class="py-toggle" href="#" id="_InitObjects-toggle" onclick="return toggle('_InitObjects');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt-module.html#_InitObjects">_InitObjects</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_InitObjects-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="_InitObjects-expanded"><a name="L1148"></a><tt class="py-lineno">1148</tt>  <tt class="py-line">    <tt class="py-comment"># 100 points sin function, plotted as green circles</tt> </tt>
<a name="L1149"></a><tt class="py-lineno">1149</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">data1</tt> <tt class="py-op">=</tt> <tt class="py-number">2.</tt><tt class="py-op">*</tt><tt id="link-433" class="py-name" targets="Variable Priithon.mandel.pi=Priithon.mandel-module.html#pi,Variable Priithon.plt.interface.pi=Priithon.plt.interface-module.html#pi,Variable Priithon.plt.pi=Priithon.plt-module.html#pi,Variable Priithon.plt.plot_objects.pi=Priithon.plt.plot_objects-module.html#pi,Variable Priithon.plt.plot_utility.pi=Priithon.plt.plot_utility-module.html#pi,Variable Priithon.plt.wxplt.pi=Priithon.plt.wxplt-module.html#pi"><a title="Priithon.mandel.pi
Priithon.plt.interface.pi
Priithon.plt.pi
Priithon.plt.plot_objects.pi
Priithon.plt.plot_utility.pi
Priithon.plt.wxplt.pi" class="py-name" href="#" onclick="return doclink('link-433', 'pi', 'link-433');">pi</a></tt><tt class="py-op">*</tt><tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-number">200</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-number">200.</tt> </tt>
<a name="L1150"></a><tt class="py-lineno">1150</tt>  <tt class="py-line">    <tt class="py-name">data1</tt><tt class="py-op">.</tt><tt id="link-434" class="py-name" targets="Variable Priithon.mockNDarray.mockNDarray.shape=Priithon.mockNDarray.mockNDarray-class.html#shape"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-434', 'shape', 'link-434');">shape</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">100</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L1151"></a><tt class="py-lineno">1151</tt>  <tt class="py-line">    <tt class="py-name">data1</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-435" class="py-name" targets="Variable Priithon.mandel.sin=Priithon.mandel-module.html#sin,Variable Priithon.plt.interface.sin=Priithon.plt.interface-module.html#sin,Variable Priithon.plt.plot_objects.sin=Priithon.plt.plot_objects-module.html#sin,Variable Priithon.plt.plot_utility.sin=Priithon.plt.plot_utility-module.html#sin,Variable Priithon.plt.sin=Priithon.plt-module.html#sin,Variable Priithon.plt.wxplt.sin=Priithon.plt.wxplt-module.html#sin"><a title="Priithon.mandel.sin
Priithon.plt.interface.sin
Priithon.plt.plot_objects.sin
Priithon.plt.plot_utility.sin
Priithon.plt.sin
Priithon.plt.wxplt.sin" class="py-name" href="#" onclick="return doclink('link-435', 'sin', 'link-435');">sin</a></tt><tt class="py-op">(</tt><tt class="py-name">data1</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L1152"></a><tt class="py-lineno">1152</tt>  <tt class="py-line">    <tt class="py-comment">#markers1 = poly_marker(data1, color='green', marker='circle',size=1)</tt> </tt>
<a name="L1153"></a><tt class="py-lineno">1153</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">markers1</tt> <tt class="py-op">=</tt> <tt id="link-436" class="py-name" targets="Class Priithon.plt.plot_objects.line_object=Priithon.plt.plot_objects.line_object-class.html"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-436', 'line_object', 'link-436');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-name">data1</tt><tt class="py-op">)</tt> </tt>
<a name="L1154"></a><tt class="py-lineno">1154</tt>  <tt class="py-line">     </tt>
<a name="L1155"></a><tt class="py-lineno">1155</tt>  <tt class="py-line">    <tt class="py-comment"># 50 points cos function, plotted as red line</tt> </tt>
<a name="L1156"></a><tt class="py-lineno">1156</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">data1</tt> <tt class="py-op">=</tt> <tt class="py-number">2.</tt><tt class="py-op">*</tt><tt id="link-437" class="py-name"><a title="Priithon.mandel.pi
Priithon.plt.interface.pi
Priithon.plt.pi
Priithon.plt.plot_objects.pi
Priithon.plt.plot_utility.pi
Priithon.plt.wxplt.pi" class="py-name" href="#" onclick="return doclink('link-437', 'pi', 'link-433');">pi</a></tt><tt class="py-op">*</tt><tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-number">100</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-number">100.</tt> </tt>
<a name="L1157"></a><tt class="py-lineno">1157</tt>  <tt class="py-line">    <tt class="py-name">data1</tt><tt class="py-op">.</tt><tt id="link-438" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-438', 'shape', 'link-434');">shape</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">50</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L1158"></a><tt class="py-lineno">1158</tt>  <tt class="py-line">    <tt class="py-name">data1</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-439" class="py-name" targets="Variable Priithon.mandel.cos=Priithon.mandel-module.html#cos,Variable Priithon.plt.cos=Priithon.plt-module.html#cos,Variable Priithon.plt.interface.cos=Priithon.plt.interface-module.html#cos,Variable Priithon.plt.plot_objects.cos=Priithon.plt.plot_objects-module.html#cos,Variable Priithon.plt.plot_utility.cos=Priithon.plt.plot_utility-module.html#cos,Variable Priithon.plt.wxplt.cos=Priithon.plt.wxplt-module.html#cos"><a title="Priithon.mandel.cos
Priithon.plt.cos
Priithon.plt.interface.cos
Priithon.plt.plot_objects.cos
Priithon.plt.plot_utility.cos
Priithon.plt.wxplt.cos" class="py-name" href="#" onclick="return doclink('link-439', 'cos', 'link-439');">cos</a></tt><tt class="py-op">(</tt><tt class="py-name">data1</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L1159"></a><tt class="py-lineno">1159</tt>  <tt class="py-line">    <tt class="py-comment">#lines = poly_line(data1, color='red')</tt> </tt>
<a name="L1160"></a><tt class="py-lineno">1160</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">lines</tt> <tt class="py-op">=</tt> <tt id="link-440" class="py-name"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-440', 'line_object', 'link-436');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-name">data1</tt><tt class="py-op">)</tt> </tt>
<a name="L1161"></a><tt class="py-lineno">1161</tt>  <tt class="py-line">    <tt class="py-comment"># A few more points...</tt> </tt>
<a name="L1162"></a><tt class="py-lineno">1162</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#markers2 = poly_marker([(0., 0.), (pi/4., 1.), (pi/2, 0.),</tt> </tt>
<a name="L1163"></a><tt class="py-lineno">1163</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#                      (3.*pi/4., -1)], color='blue',</tt> </tt>
<a name="L1164"></a><tt class="py-lineno">1164</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#                      fillcolor='green', marker='cross')</tt> </tt>
<a name="L1165"></a><tt class="py-lineno">1165</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">markers2</tt> <tt class="py-op">=</tt> <tt id="link-441" class="py-name"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-441', 'line_object', 'link-436');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-number">0.</tt><tt class="py-op">,</tt> <tt class="py-number">0.</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt id="link-442" class="py-name"><a title="Priithon.mandel.pi
Priithon.plt.interface.pi
Priithon.plt.pi
Priithon.plt.plot_objects.pi
Priithon.plt.plot_utility.pi
Priithon.plt.wxplt.pi" class="py-name" href="#" onclick="return doclink('link-442', 'pi', 'link-433');">pi</a></tt><tt class="py-op">/</tt><tt class="py-number">4.</tt><tt class="py-op">,</tt> <tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt id="link-443" class="py-name"><a title="Priithon.mandel.pi
Priithon.plt.interface.pi
Priithon.plt.pi
Priithon.plt.plot_objects.pi
Priithon.plt.plot_utility.pi
Priithon.plt.wxplt.pi" class="py-name" href="#" onclick="return doclink('link-443', 'pi', 'link-433');">pi</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">,</tt> <tt class="py-number">0.</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">3.</tt><tt class="py-op">*</tt><tt id="link-444" class="py-name"><a title="Priithon.mandel.pi
Priithon.plt.interface.pi
Priithon.plt.pi
Priithon.plt.plot_objects.pi
Priithon.plt.plot_utility.pi
Priithon.plt.wxplt.pi" class="py-name" href="#" onclick="return doclink('link-444', 'pi', 'link-433');">pi</a></tt><tt class="py-op">/</tt><tt class="py-number">4.</tt><tt class="py-op">,</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L1166"></a><tt class="py-lineno">1166</tt>  <tt class="py-line">    <tt class="py-comment"># An Image</tt> </tt>
<a name="L1167"></a><tt class="py-lineno">1167</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">return</tt> <tt class="py-op">[</tt><tt class="py-name">markers1</tt><tt class="py-op">]</tt><tt class="py-comment">#, lines, markers2]</tt> </tt>
</div><a name="L1168"></a><tt class="py-lineno">1168</tt>  <tt class="py-line"> </tt>
<a name="L1169"></a><tt class="py-lineno">1169</tt>  <tt class="py-line"> </tt>
<a name="test_axis"></a><div id="test_axis-def"><a name="L1170"></a><tt class="py-lineno">1170</tt> <a class="py-toggle" href="#" id="test_axis-toggle" onclick="return toggle('test_axis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt-module.html#test_axis">test_axis</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="test_axis-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="test_axis-expanded"><a name="L1171"></a><tt class="py-lineno">1171</tt>  <tt class="py-line">    <tt class="py-name">a</tt> <tt class="py-op">=</tt> <tt id="link-445" class="py-name" targets="Class Priithon.plt.plot_objects.axis_object=Priithon.plt.plot_objects.axis_object-class.html"><a title="Priithon.plt.plot_objects.axis_object" class="py-name" href="#" onclick="return doclink('link-445', 'axis_object', 'link-445');">axis_object</a></tt><tt class="py-op">(</tt><tt id="link-446" class="py-name"><a title="Priithon.plt.plot_utility.rotate" class="py-name" href="#" onclick="return doclink('link-446', 'rotate', 'link-23');">rotate</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L1172"></a><tt class="py-lineno">1172</tt>  <tt class="py-line">    <tt class="py-name">graph_area</tt> <tt class="py-op">=</tt> <tt id="link-447" class="py-name"><a title="Priithon.plt.plot_utility.box_object" class="py-name" href="#" onclick="return doclink('link-447', 'box_object', 'link-129');">box_object</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">10</tt><tt class="py-op">,</tt><tt class="py-number">10</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">100</tt><tt class="py-op">,</tt><tt class="py-number">100</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1173"></a><tt class="py-lineno">1173</tt>  <tt class="py-line">    <tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1.</tt><tt class="py-op">,</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt> </tt>
<a name="L1174"></a><tt class="py-lineno">1174</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-448" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.calculate_ticks" class="py-name" href="#" onclick="return doclink('link-448', 'calculate_ticks', 'link-155');">calculate_ticks</a></tt><tt class="py-op">(</tt><tt class="py-name">bounds</tt><tt class="py-op">)</tt> </tt>
<a name="L1175"></a><tt class="py-lineno">1175</tt>  <tt class="py-line">    <tt class="py-name">dummy_dc</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L1176"></a><tt class="py-lineno">1176</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-449" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.layout
Priithon.plt.plot_objects.border_object.layout
Priithon.plt.plot_objects.legend_object.layout" class="py-name" href="#" onclick="return doclink('link-449', 'layout', 'link-177');">layout</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dummy_dc</tt><tt class="py-op">)</tt> </tt>
<a name="L1177"></a><tt class="py-lineno">1177</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">tick_points</tt> </tt>
<a name="L1178"></a><tt class="py-lineno">1178</tt>  <tt class="py-line">     </tt>
<a name="L1179"></a><tt class="py-lineno">1179</tt>  <tt class="py-line">    <tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">0.</tt><tt class="py-op">,</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt> </tt>
<a name="L1180"></a><tt class="py-lineno">1180</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-450" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.calculate_ticks" class="py-name" href="#" onclick="return doclink('link-450', 'calculate_ticks', 'link-155');">calculate_ticks</a></tt><tt class="py-op">(</tt><tt class="py-name">bounds</tt><tt class="py-op">)</tt> </tt>
<a name="L1181"></a><tt class="py-lineno">1181</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-451" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.layout
Priithon.plt.plot_objects.border_object.layout
Priithon.plt.plot_objects.legend_object.layout" class="py-name" href="#" onclick="return doclink('link-451', 'layout', 'link-177');">layout</a></tt><tt class="py-op">(</tt><tt class="py-name">graph_area</tt><tt class="py-op">,</tt><tt class="py-name">dummy_dc</tt><tt class="py-op">)</tt> </tt>
<a name="L1182"></a><tt class="py-lineno">1182</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">tick_points</tt> </tt>
<a name="L1183"></a><tt class="py-lineno">1183</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">tick_start</tt> </tt>
<a name="L1184"></a><tt class="py-lineno">1184</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">tick_stop</tt> </tt>
</div><a name="L1185"></a><tt class="py-lineno">1185</tt>  <tt class="py-line"> </tt>
<a name="L1186"></a><tt class="py-lineno">1186</tt>  <tt class="py-line"> </tt>
<a name="L1187"></a><tt class="py-lineno">1187</tt>  <tt class="py-line"> </tt>
<a name="L1188"></a><tt class="py-lineno">1188</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L1189"></a><tt class="py-lineno">1189</tt>  <tt class="py-line">         </tt>
<a name="MyApp"></a><div id="MyApp-def"><a name="L1190"></a><tt class="py-lineno">1190</tt> <a class="py-toggle" href="#" id="MyApp-toggle" onclick="return toggle('MyApp');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.plt.wxplt.MyApp-class.html">MyApp</a><tt class="py-op">(</tt><tt class="py-base-class">wx</tt><tt class="py-op">.</tt><tt class="py-base-class">App</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MyApp-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="MyApp-expanded"><a name="MyApp.OnInit"></a><div id="MyApp.OnInit-def"><a name="L1191"></a><tt class="py-lineno">1191</tt> <a class="py-toggle" href="#" id="MyApp.OnInit-toggle" onclick="return toggle('MyApp.OnInit');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.wxplt.MyApp-class.html#OnInit">OnInit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MyApp.OnInit-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="MyApp.OnInit-expanded"><a name="L1192"></a><tt class="py-lineno">1192</tt>  <tt class="py-line">            <tt id="link-452" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-452', 'frame', 'link-359');">frame</a></tt> <tt class="py-op">=</tt> <tt id="link-453" class="py-name" targets="Class Priithon.plt.wxplt.plot_frame=Priithon.plt.wxplt.plot_frame-class.html"><a title="Priithon.plt.wxplt.plot_frame" class="py-name" href="#" onclick="return doclink('link-453', 'plot_frame', 'link-453');">plot_frame</a></tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-string">"Graph"</tt><tt class="py-op">,</tt><tt id="link-454" class="py-name"><a title="Priithon.plt.plot_objects.text_object.size
Priithon.plt.plot_utility.box_object.size
Priithon.viewerRubberbandMode.viewerRubberbandMode.size" class="py-name" href="#" onclick="return doclink('link-454', 'size', 'link-13');">size</a></tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-number">400</tt><tt class="py-op">,</tt><tt class="py-number">400</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1193"></a><tt class="py-lineno">1193</tt>  <tt class="py-line">            <tt id="link-455" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-455', 'frame', 'link-359');">frame</a></tt><tt class="py-op">.</tt><tt class="py-name">Show</tt><tt class="py-op">(</tt><tt id="link-456" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-456', 'True', 'link-98');">True</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1194"></a><tt class="py-lineno">1194</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SetTopWindow</tt><tt class="py-op">(</tt><tt id="link-457" class="py-name"><a title="Priithon.py.frame" class="py-name" href="#" onclick="return doclink('link-457', 'frame', 'link-359');">frame</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1195"></a><tt class="py-lineno">1195</tt>  <tt class="py-line">            <tt class="py-comment">#frame.OnPlotDraw(None)</tt> </tt>
<a name="L1196"></a><tt class="py-lineno">1196</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">return</tt> <tt id="link-458" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-458', 'True', 'link-98');">True</a></tt> </tt>
</div></div><a name="L1197"></a><tt class="py-lineno">1197</tt>  <tt class="py-line"> </tt>
<a name="L1198"></a><tt class="py-lineno">1198</tt>  <tt class="py-line"> </tt>
<a name="L1199"></a><tt class="py-lineno">1199</tt>  <tt class="py-line">    <tt id="link-459" class="py-name" targets="Variable Priithon.py.PyFilling.app=Priithon.py.PyFilling-module.html#app"><a title="Priithon.py.PyFilling.app" class="py-name" href="#" onclick="return doclink('link-459', 'app', 'link-459');">app</a></tt> <tt class="py-op">=</tt> <tt class="py-name">MyApp</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L1200"></a><tt class="py-lineno">1200</tt>  <tt class="py-line">    <tt id="link-460" class="py-name"><a title="Priithon.py.PyFilling.app" class="py-name" href="#" onclick="return doclink('link-460', 'app', 'link-459');">app</a></tt><tt class="py-op">.</tt><tt class="py-name">MainLoop</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1201"></a><tt class="py-lineno">1201</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 22 14:59:49 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
